Madexcept with msbuild

delphi package - automated exception handling
Post Reply
lexavlima
Posts: 2
Joined: Mon May 08, 2023 8:44 am

Madexcept with msbuild

Post by lexavlima »

Hello,
I can't get madexcept to work when I build my project with msbuild. I use Delphi 10.1
When I run my project in debug inside the IDE, and then make a call to an object that is not initialized, I get the madexcept exception window.
When I build my project with msbuild and after that, I execute
madExceptPatch.exe project1.exe
Then the madexcept "special" window does not appear. The normal execption window appears.
Note that the map file is generated in the exe directory:

Code: Select all

C:\Projects\TestMadExcept\Win32\Debug>madExceptPatch.exe project1.exe /enabled=1
No *.mes file found for this project.
No default settings found in the registry.
Using factory default settings.
Binary patched.
map file is already appended
lexavlima
Posts: 2
Joined: Mon May 08, 2023 8:44 am

Re: Madexcept with msbuild

Post by lexavlima »

SOLVED:
After deleting the built executable and the map file, the patching works.
iconic
Site Admin
Posts: 1056
Joined: Wed Jun 08, 2005 5:08 am

Re: Madexcept with msbuild

Post by iconic »

Thanks for reporting back to us :D

--Iconic
Post Reply