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: 1065
Joined: Wed Jun 08, 2005 5:08 am

Re: Madexcept with msbuild

Post by iconic »

Thanks for reporting back to us :D

--Iconic
CFlem
Posts: 10
Joined: Wed Oct 05, 2022 2:55 pm

Re: Madexcept with msbuild

Post by CFlem »

I'm having a similar isssue, after running the madexceptpatch I can see the size of my executable increase but I still don't get the bug report when errors occur. Can someone tell me how to troubleshoot this?
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Re: Madexcept with msbuild

Post by madshi »

Sorry for the late reply, just seeing your comment now. Does it work when compiling within the IDE?
Post Reply