Turn off MadExcept on runtime!

contains all delphi packages mentioned below
Post Reply
coolman_kk
Posts: 7
Joined: Thu Apr 28, 2005 11:55 am

Turn off MadExcept on runtime!

Post by coolman_kk »

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.
neji
Posts: 155
Joined: Wed Mar 09, 2005 11:39 am
Contact:

Post by neji »

PauseMadExcept(true) ?
coolman_kk
Posts: 7
Joined: Thu Apr 28, 2005 11:55 am

Post by coolman_kk »

How to register this function!
Thanks.
coolman_kk
Posts: 7
Joined: Thu Apr 28, 2005 11:55 am

Post by coolman_kk »

I found the way.
Thank you very much "neji"!
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

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.
Post Reply