View Full Version : error handling with delphix

29-11-2003, 03:16 AM
Hi all,,

x:= 1; y:= 0; // try to divide by zero
z:= x/y;
on EZeroDivide do HandleZeroDivide;
on EMathError do HandleMathError;

Now this works fine in normal delphi... BUT in delphix errors cause a machine freeze, that i can only reset sucessfully by rebooting machine...

Even if I disable timer on error or try other things it still frezes..

Very annoying as it is tedious tring to find error and having to reboot
continually... Do others have this problem and if so what is an
effective method to handle errors with delphix .....

cheeeeeeeeeerrrrrrrrrrrrssssssss ato

29-11-2003, 08:15 AM
This happens when you run in Full screen mode as DelphiX then has full control of the screen and Windows no longer can access the screen. So when an error occurs the PC 'freezes' as the DelphiX program is no longer running and Delphi which needs to show you the error can no longer write to the screen so it seems to hang in the background.

The best solution is to disable full screen (The DelphiX tutorial in this forum is great to show how to use full screen in wondowed mode). Otherwise just display your DelphiX in a window on the screen until after your debugging is done.

29-11-2003, 07:47 PM
Hi William,,, :)

THX, that does the trick ....

cheeeeeeeerrrrrrrrrssssssssss ato