Mapping binary file failed Delphi RIO10.3.3, Madexcept 5.0.0

delphi package - automated exception handling
jjnoui
Posts: 13
Joined: Sun May 10, 2020 4:16 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by jjnoui »

Yes it was a space between the parameters, sorry again...
the result with space :

D:\>"C:\Program Files (x86)\madCollection\madExcept\Tools\madExceptPatch.exe" "D:\todel\todel.exe" /dontCheckRtl /RestoreFileTime
No map file found.
D:\>

d:\todel contains :

todel.dpr
todel.dproj
todel.dproj.local
todel.exe
todel.identcache
todel.res
utodel.dcu
utodel.dfm
utodel.pas
jjnoui
Posts: 13
Joined: Sun May 10, 2020 4:16 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by jjnoui »

IT WORKS!

drc and map files were not generated.

After doing :

project
- option
- compiler
- linker
- map file : passed from disabled to detailed

the drc and map files have been generated and everything works perfectly.

I guess in the message "[madExcept Avertissement] Mapping binary file failed (2)"

(2) represented the number of missing files?



Our exchange was very fruitful.
thank you so much
jjnoui
Posts: 13
Joined: Sun May 10, 2020 4:16 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by jjnoui »

IT WORKS!

drc and map files were not generated.

After doing :

project
- option
- compiler
- linker
- map file : passed from disabled to detailed

the drc and map files have been generated and everything works perfectly.

I guess in the message "[madExcept Avertissement] Mapping binary file failed (2)"

(2) represented the number of missing files?



Our exchange was very fruitful.
thank you so much
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by madshi »

The (2) is the error code. ERROR_FILE_NOT_FOUND = 2. So it seems it was the map file which was not found.

What I don't understand, though, is that the madExcept IDE wizard is supposed to automatically switch the map file option to "detailed" before you compile. I don't know why that didn't work! It should have...
jjnoui
Posts: 13
Joined: Sun May 10, 2020 4:16 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by jjnoui »

As a crazy 'clicker', it is possible that I mistakenly disabled this option. :oops: :sorry:

One last question:
Does MadExcept also work with a program compiled in release version?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by madshi »

It shouldn't matter if you disable it, madExcept should re-enable it again behind your back the next time you compile. At least in theory.

Yes, madExcept should also work for release builds.
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by madshi »

P.S: You didn't uncheck "adjust compiler & linker options" here, did you?

http://help.madshi.net/madExceptConfiguration.htm
jjnoui
Posts: 13
Joined: Sun May 10, 2020 4:16 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by jjnoui »

shame on me :(
only enable IDE exception catching is checked ....
but one thing : enable Unicode hack for setting dialog is in grey (disabled?)
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Re: Mapping binary file failed Delphi RIO10.3.3, Madexcept 5

Post by madshi »

Haha! Now who pays me for my support hours? :wink: Just kidding, of course...

"Enable Unicode hack" is only for old Delphi versions which didn't native support Unicode.
Post Reply