Re: Exceptions disappear when thrown in callback

From: Date: Wed, 15 Mar 2006 19:03:24 +0000
Subject: Re: Exceptions disappear when thrown in callback
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2622@lists.php.net to get a copy of this message
Thanks. I'll take a look.. can you make a short example and commit it to CVS under test/bug_*? -Andrei On Mar 15, 2006, at 8:16 AM, Christian Weiske wrote:
Hello all, There is a real big problem with Exceptions and callbacks: If an exception is thrown while you are in a callback (e.g. when a button has been clicked), the php code stops executing, but no exception is shown (dumped to the console). That is really annoying, because you never know when an exception has been thrown unless you catch it before the callback returns. I had several bang-head-against-desk situations because I absolutely didn't know *where* the exception occured, and the code just hang. IMO the callback handler in php-gtk should stop the main loop and dump the exception as it's done in php itself. -- Regards/MfG, Christian Weiske


« previous php.gtk.dev (#2622) next »