Jump to content
Sign in to follow this  
Guest

original exception stacktrace/type is lost

Recommended Posts

Guest

that makes finding exception source a bit difficult

 

procedure RaiseException();
begin
    raise Exception.Create('test')
end


procedure LoadCount();
begin
   Parallel.Join(
    procedure
    begin
      RaiseException();
    end,
    procedure
    begin
    end).Execute;
end;

 

delphi and madexcept will show me stack trace like 

 

image.png.f79259b68666b5b63b69d00702d33271.png

 

image.thumb.png.228bf49bd68e463a6e497a73917bf7c8.png

 

EJoinException should be raised at original address or contain original exception as innerexception

 

Share this post


Link to post
Guest

already found it 😄

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×