Results 1 to 3 of 3

Thread: error handling with delphix

  1. #1

    error handling with delphix

    Hi all,,

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

    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
    The Universe is all right here!!!

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    error handling with delphix

    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.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    error handling with delphix

    Hi William,,,

    THX, that does the trick ....

    cheeeeeeeerrrrrrrrrssssssssss ato
    The Universe is all right here!!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •