Error starting application

delphi package - automated exception handling
Post Reply
Tomislav Ilic
Posts: 3
Joined: Tue Feb 11, 2020 10:15 am

Error starting application

Post by Tomislav Ilic »

Hello,
submit
When we patch our application with madexceptpatch and run outside of the IDE, we get the Error H7 .dll can not be found.

When we run inside the IDE, alle is working fine.

What can we do. We use the 5.0.0 version.

The application is using runtime packages, we have a small executable en load the Delphi bpls on runtime.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Error starting application

Post by madshi »

"H7.dll"? Is that one of your dlls? I've never heard of such a dll yet.

If you simply skip the madExceptPatch call, does it work then?
Tomislav Ilic
Posts: 3
Joined: Tue Feb 11, 2020 10:15 am

Re: Error starting application

Post by Tomislav Ilic »

No, “H7.dll” is not ours.
And yes, if i skip the madExceptPatch call, then it works.
madshi
Site Admin
Posts: 10753
Joined: Sun Mar 21, 2004 5:25 pm

Re: Error starting application

Post by madshi »

That seems quite strange. When you compile outside of the IDE, are you telling Delphi to produce a detailed map file (-gd switch)? Otherwise, madExcept might use an outdated map file and that could potentially screw things up. Also please make sure that there are no outdated *.tds files flying around which could result in madExcept becoming confused.

For your information: When you compile inside of the IDE, madExceptPatch.exe is also being called to perform the patching. So if it works when compiling inside of the IDE, it seems unlikely to be a bug in madExceptPatch.exe, but my best guess is that madExcept isn't using the right map or TD32 debug information to patch your EXE file.
Tomislav Ilic
Posts: 3
Joined: Tue Feb 11, 2020 10:15 am

Re: Error starting application

Post by Tomislav Ilic »

Hello, my problem was in map file.
It works now.
Thank you.
Post Reply