What does madExceptPatch error code 5, patching of unit initialization order failed, actually mean and how can I fix it ?
When building my apps with Final Builder I sometimes get this error.
Thanks
madExceptPatch error code 5 ?
Yes I can reproduce the problem, its Delphi. I have several large fairly complex apps and have two ways of building them.
By setting conditional compile options my query components are either inherited from TADOQuery using ADOExpress or TQuery for the BDE (patched to use Opus Direct Access). This gives two builds of the apps that either use ADO or DAO (needed for slow machines).
When I build in the Delphi IDE everything is fine either way.
When I build in Final Builder the ADO build is patched with madExceptPatch just fine but the DAO build always fails with error 5.
As an exception:
One of the apps always patches fine either way.
One of the apps always fails either way.
So this does not give us a firm cause either way does it ?
By setting conditional compile options my query components are either inherited from TADOQuery using ADOExpress or TQuery for the BDE (patched to use Opus Direct Access). This gives two builds of the apps that either use ADO or DAO (needed for slow machines).
When I build in the Delphi IDE everything is fine either way.
When I build in Final Builder the ADO build is patched with madExceptPatch just fine but the DAO build always fails with error 5.
As an exception:
One of the apps always patches fine either way.
One of the apps always fails either way.
So this does not give us a firm cause either way does it ?
But you have for all builds made sure that a detailed map file is created?
Could you please mail a non-patched exe to me together with the map file and the mes file (of course an exe which when being patched results in error 5)? So that I can manually call madExceptPatch here on my PC. Then I can probably find out what the problem is. I don't need to be able to execute the exe. I'll just try to patch it here and see what happens and why.
Thanks!
Could you please mail a non-patched exe to me together with the map file and the mes file (of course an exe which when being patched results in error 5)? So that I can manually call madExceptPatch here on my PC. Then I can probably find out what the problem is. I don't need to be able to execute the exe. I'll just try to patch it here and see what happens and why.
Thanks!
Sorry to trouble you. I realised the .map files were being left behind by Delphi and not recreated by Final Builder. This of course meant they were out of sync with different builds giving strange results.
I found an item in a news archive telling me to use -gd command line options so I added these in the Extra command line options box in Final Builder and now everything is fine. Interestingly it only generates the .map files, not .mes files.
I found an item in a news archive telling me to use -gd command line options so I added these in the Extra command line options box in Final Builder and now everything is fine. Interestingly it only generates the .map files, not .mes files.