Segmentation Fault?
| From: | Anant Narayanan | Date: | Sat, 17 Dec 2005 13:45:39 +0000 |
| Subject: | Segmentation Fault? | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6420@lists.php.net to get a copy of this message | ||
Hello All!
Was just wondering what a 'segmentation fault' was. It seems to appear
wherever a PHP-Gtk2 app is implemented in OOP style. The error doesn't
seem to occur in the same app implemented procedure style. Of course,
I am new to OOPS so I could have done something wrong there!
Is there really any advantage in programming OOP style? PHP-GTK itself
is OOP based, are there any serious drawbacks in writing apps that are
C-style using PHP-Gtk2?
On another note, I was just curious about the .phpw extension. The 'w'
is just a random character chosen to differentiate between PHP-Gtk
apps and regular php scripts, or is there any historical significance?
;-)
I am attaching the program that gave me the segmentation fault (too
much to ask of you to read it, but, maybe someone has a lot of time on
their hands?!) It's the first object oriented program I've written so
forgive me for any obvious mistakes!
Thanks and Regards,
Anant
P.S. If you've seen the code and are curious what "Ring" is, it's an
attempt at creating an IDE for PHP-Gtk2. It's extremely primitive
stages now but I have a lot of ideas :-) Before delving into that, I'd
like to know if there's any ongoing project that attempts the same
thing, so that we can avoid duplication of effort. Christian has
however told me that there are no existing IDE's exclusively for
PHP-Gtk2.
Attachment: [application/x-php] ringoop.php
Attachment: [application/x-php] ringoop.php