Is the option "pause all running threads" working?

delphi package - automated exception handling

Is the option "pause all running threads" working?

Postby cguerra » Wed Jun 09, 2004 6:08 am

Hi Madshi

I'm using a standard information box to handle some of the exceptions, but I'm having the problem of my Forms not redrawing during/after the exception, but only happens with my standard box, I have try MessageDlg and ShowMessage but it is the same.

I follow your suggestion in the FAQ regarding the redrawn of Forms while the exception box is showing, I uncheck "pause all running threads" but I still not getting my forms to redrawn.

Is there something I can do to fix this?

Regards
cguerra
 
Posts: 4
Joined: Wed Jun 09, 2004 5:45 am

Postby madshi » Wed Jun 09, 2004 8:58 am

If you're using VCL boxes (which you are seemingly doing) in an exception handler you must tell madExcept to synchronize your handler. You can do so by setting the second parameter to "true" when calling RegisterExceptionHandler. Have you set it to "false"?
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm

Postby cguerra » Wed Jun 09, 2004 7:53 pm

Hi Madshi

OH!!, I forgot to mention that I recently updated to madCollection 2.1.2.0, after that I could not compile my project, I was getting the error:

"[Error] MainUnit.pas(221): There is no overloaded version of 'RegisterExceptionHandler' that can be called with these arguments"

The error shows at line "RegisterExceptionHandler(madExceptionDBHandler,false);"

It was working fine before the madCollection update, so I start using the MadExceptionHandler Component.

Do you know what is causing this error?

Regards
cguerra
 
Posts: 4
Joined: Wed Jun 09, 2004 5:45 am

Postby madshi » Thu Jun 10, 2004 6:24 am

The parameters of the exception handler callbacks have changed slightly:

Code: Select all
type
  TExceptActionEvent   = procedure (action          : TExceptAction;
                                    frozen          : boolean;
                                    exceptObject    : TObject;
                                    exceptAddr      : pointer;
                                    crashedThreadId : dword;
                                    var bugReport   : string;
                                    var screenShot  : string;
                                    var handled     : boolean      );
madshi
Site Admin
 
Posts: 10200
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 11 guests

cron