Page 2 of 2

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

PostPosted: Thu May 14, 2020 2:17 pm
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

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

PostPosted: Thu May 14, 2020 3:38 pm
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

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

PostPosted: Thu May 14, 2020 3:56 pm
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

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

PostPosted: Thu May 14, 2020 5:14 pm
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...

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

PostPosted: Thu May 14, 2020 5:22 pm
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?

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

PostPosted: Thu May 14, 2020 5:34 pm
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.

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

PostPosted: Thu May 14, 2020 5:35 pm
by madshi
P.S: You didn't uncheck "adjust compiler & linker options" here, did you?

http://help.madshi.net/madExceptConfiguration.htm

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

PostPosted: Thu May 14, 2020 5:42 pm
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?)

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

PostPosted: Thu May 14, 2020 5:49 pm
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.