MadExcept for delphi is not printing stacktrace after application crash -


detailed question :

we trying capture stacktrace (bugreport.txt) using madexcept in delphi application thread crashing application fatal error. madexcept doesn't print stacktrace after application crashes. ideas why?

our code :

procedure tmainform.wsserverexecute(acontext: tidcontext); begin   try     htmlexecute(acontext);   except     on e: exception     begin       if not(e eidexception)       begin         logdata.adderror('htmlexecute error: ' + e.message);         madexcept.handleexception;       end;       raise;     end;   end; end; 

this procedure called when client makes websocket connection server. thread produced indy tcpserver component. htmlexecute function reads , writes packets between client , server. i've wrapped in try..except block catch exceptions. logdata line records error error log , madexcept line supposed create bugreport.txt file. raise line passes exception indy knows fatal error occurred , abort thread.

the reason why madexcept not handling exception because caught on e:exception do handling yourself. give madexcept.handleexcept exception handle it:

madexcept.handleexception(etnormal, e); 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -