Freezes on trapped exceptions in DLL

delphi package - automated exception handling
Post Reply
Azuriel
Posts: 1
Joined: Mon Nov 15, 2004 1:58 pm

Freezes on trapped exceptions in DLL

Post by Azuriel »

My program is a simple VCL applications wich dynamically load several DLL.
For an unknown reason, when an exception is raised in a DLL but immediatly trapped and treated, It seems that madexcept intercepts it. :?

for i := 0 to 15 do
try
raise Exception.Create;
except
end;

takes 2sec to be executed when Madexcept is used by the DLL.

Is it normal? I read in the documentation that when an exception is trapped, madexcept doesn't treat anything and take no time.

Unfortunally I don't know any way to resolve this problem... :/
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Is it a big dll or a very small dll? If it's a small one, which units does it use?

Normally when using try..except blocks madExcept does not do anything. Things change when you either use RegisterHiddenExceptionHandler or when using neither SysUtils nor madExcept.
Post Reply