I just tried to catch range error exceptions with LongWord and Int64, and I 
can't seem to catch them properly with try..except.

When a Longword variable has value zero (the smallest possible), and inside 
a try..except structure I try to decrement it below zero, the except clause 
executes but the exception is not disabled, so an exception is raised 
*again* just outside the try..except.  I did find a workaround for this, to 
avoid the exception being re-raised.

But for this next example I can find no workaround.  When an Int64 variable 
has its smallest possible value Low(Int64) and I try to decrement it lower 
inside a try..except, an exception is raised that simply will not be 
disabled.  The same happens if I try to increment High(Int64).

Can anyone explain what is happening and how I can catch and these 
exceptions without them being re-raised?

Rory Daulton
[EMAIL PROTECTED] 


-------------------------------------------------------------------------------
[This e-mail scanned for viruses and spam by Nmax - "Your MAXimum Connection!"]



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to