Page 1 of 1

Error starting application

Posted: Wed Feb 12, 2020 3:23 pm
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.

Re: Error starting application

Posted: Wed Feb 12, 2020 3:26 pm
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?

Re: Error starting application

Posted: Fri Feb 14, 2020 8:42 am
by Tomislav Ilic
No, “H7.dll” is not ours.
And yes, if i skip the madExceptPatch call, then it works.

Re: Error starting application

Posted: Fri Feb 14, 2020 9:03 am
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.

Re: Error starting application

Posted: Mon Feb 17, 2020 12:45 pm
by Tomislav Ilic
Hello, my problem was in map file.
It works now.
Thank you.