64bit dll doesn't show MadExcept dialog

delphi package - automated exception handling

64bit dll doesn't show MadExcept dialog

Postby frevan » Mon May 09, 2016 1:14 pm

When I build the 32bit version of our application's main dll, it works fine. When I build the 64bit version, it just shows the normal exception dialog.

I came across this post from 2013, which made me try madExceptPatch.exe manually and that worked fine:
http://forum.madshi.net/viewtopic.php?f=4&t=27532

I can think of two possible reasons for this problem:
1. the file size, as the 64bit version is about 4MiB bigger than the 32bit one (almost 13MiB vs 8MiB)
2. more likely though, it's becasue we use the compiler def {$LIBSUFFIX '_x64'} in our project file to make sure the 64bit version compiles to a different filename. I'm guessing the patcher tries to patch the wrong filename?

I can get it to work now when I have to, but it might be good to look into this anyway.
frevan
 
Posts: 3
Joined: Mon May 09, 2016 1:06 pm

Re: 64bit dll doesn't show MadExcept dialog

Postby frevan » Mon May 09, 2016 1:19 pm

Further testing confirms it's because of the {$LIBSUFFIX '_x64'} code.
frevan
 
Posts: 3
Joined: Mon May 09, 2016 1:06 pm

Re: 64bit dll doesn't show MadExcept dialog

Postby madshi » Mon May 09, 2016 3:19 pm

It's a bug in Delphi. It just doesn't report the correct/full EXE file name to madExcept, when using that libsuffix option, unfortunately... :(
madshi
Site Admin
 
Posts: 9431
Joined: Sun Mar 21, 2004 5:25 pm

Re: 64bit dll doesn't show MadExcept dialog

Postby frevan » Wed May 18, 2016 2:37 pm

How do you get the binary name? It might be good to report this to Embarcadero so it has some chance of being fixed.
frevan
 
Posts: 3
Joined: Mon May 09, 2016 1:06 pm

Re: 64bit dll doesn't show MadExcept dialog

Postby madshi » Wed May 18, 2016 3:18 pm

I've reported several bugs to Embarcadero in the past, none of them got fixed so far. So I've pretty much given up on that sort of thing... :(
madshi
Site Admin
 
Posts: 9431
Joined: Sun Mar 21, 2004 5:25 pm


Return to madExcept

Who is online

Users browsing this forum: No registered users and 1 guest