Hello,
To turn off madexcept when I run Fastreport I use:
Try
Form118.frxReport1.ShowReport( True );
Except
On E: Exception Do
MessageBox( 0,PChar( E.Message ),'Error',MB_ICONERROR );
End;
But this not turn off all exceptions.
On the print dialog on "pages print" I set "2.3" (the right is 2,3) and get a error '2.3 is not valid integer value" from MadExcept.
Can turn off all exceptions?
Thanks.
Turn off MadExcept on runtime!
-
- Posts: 7
- Joined: Thu Apr 28, 2005 11:55 am
I wouldn't recommend to use PauseMadExcept for temporare stuff like this, since PauseMadExcept costs quite some performance and is also not fully thread safe. It's meant to switch off PauseMadExcept completely for quite a while and not for just one specific situation.
What exception class does this "2.3 is not valid integer value" exception have? Maybe you can use the exception filter (see madExcept settings dialog) to get a normal message box for these kind of exceptions.
What exception class does this "2.3 is not valid integer value" exception have? Maybe you can use the exception filter (see madExcept settings dialog) to get a normal message box for these kind of exceptions.