Build PC

delphi package - automated exception handling
Post Reply
etwoss
Posts: 23
Joined: Thu Aug 04, 2016 11:45 am

Build PC

Post by etwoss »

Hi

We use a Build PC to build our test en production versions. On this PC Delphi is not installed normally, only the files needed. We use commandline to build de exe
How can we still use madExcept?

Eric
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Build PC

Post by madshi »

You need to run the "madExceptPatch.exe" tool after command line compiling has succeeded. It's a command line tool and will show a help if you start it without parameters.
etwoss
Posts: 23
Joined: Thu Aug 04, 2016 11:45 am

Re: Build PC

Post by etwoss »

Hi

Can you tell me what the madExceptPatch tool does?

Eric
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Build PC

Post by madshi »

It reads your exe's map file, extracts some information from it, then compresses that and stores it into the resource section of your exe file. This way madExcept will know the function names and line numbers for your exe. Also, madExceptPatch does some minor patching to fully activate madExcept in your exe.

When compiling inside of the IDE, the madExceptWizard (which is design time package loaded in the IDE) will automatically call madExceptPatch.exe every time you compile your exe. But if you compile with a batch file or MSBuild or some other external tool, you need to call madExceptPatch manually.
Post Reply