Page 1 of 1

mad£xcept not working in customer environment

PostPosted: Thu Nov 02, 2017 3:15 pm
by malc
We have built madExcept into a number of our applications and it's working fine on our development machines, but when our customer runs the applications and an exception is raised, it's just displaying the standard exception dialogs rather than madExcept. Any ideas why this might be? Our only thought at the moment is that our customer is in China and will be using a Chinese version of Windows - is this likely to have an effect?

Re: mad£xcept not working in customer environment

PostPosted: Fri Nov 03, 2017 3:07 pm
by santiago
You might have a similar workflow as we do.
We developers compile our app from within the Delphi IDE -> madExcept installs an IDE plugin that runs madExceptPatch.exe automatically for you.

For our release builds we use MSBUILD. It is then necessary to manually run madExceptPatch.exe.
We have a japanese version of our software so I don't think the chinese Windows Version would have anything to do with it.

Refer to the FAQ:
Maybe that is your issue.

6. Why does madExcept not work when I use command line compiling?

madExcept needs to patch your binary file. When compiling from inside the IDE, madExcept's integrated IDE wizard does that patching automatically. When using command line compiling, you need to manually invoke the patching process by starting the tool "madExceptPatch.exe" after having compiled your project. The tool is located in madExcept's "Tools" folder. Please add the parameter "-gd" to the command line when calling the compiler to make sure that a detailed map file is created.

Re: mad£xcept not working in customer environment

PostPosted: Thu Nov 09, 2017 3:26 pm
by madshi
Is the same EXE file working for you on your development PCs and not working for your customers? Or are we talking EXE compiled on your dev PC works, but EXE compiled on build machine doesn't work (as suggested by santiago)?

Have you tried running your EXE file on a clean VM (with neither Delphi nor madExcept installed)? Does it work there?