Two days ago I ran into the bug below while porting some code from Delphi 2006 to Delphi XE2, posted on StackOverflow, and got solutions in very little time.
Thanks Andreas Hausladen, David Heffernan, Ken White, Sertac Akyuz, Rudy Velthuis, for answering, providing solutions and verifying!
Note that this worked up until Delphi XE, and has been fixed in Delphi XE3 (which for this project I can’t use as the client upgraded to XE2 without SA).
Problem
- I get the error mentioned further on error when debugging an executable in Delphi XE2 update 4 under these circumstances:
- that depends on mqic.dll from WebShpere that is in C:\Program Files \IBM\WebSphere MQ\bin\mqic.dll and C:\Program Files\IBM\WebSphere MQ\bin is on the system path (not on the user path).
- is being debugged with an override environment variable in the Run -> Parameters -> Debugger -> Environment Block -> User overrides
- Including System Variables on the same property page is checked
This is the error (it’s a Windows DLL load error marked “System Error”).
The program can’t start because mqic.dll is missing from your computer. Try reinstalling the program to fix this problem.
Solutions
- Install IDE Fix Pack from Andreas Hausladen it fixes the “Include System Variables” isn’t working issue.
- Use a batch file that sets the environment variables, then starts Delphi
(only usable when the environment variables are more or less fixed) - Copy all environment variables you need over from the system ones to the user ones in the Delphi IDE
(only usable when you don’t need that many system ones) - Upgrade to Delphi XE3
–jeroen
Filed under: Delphi, Delphi 2006, Delphi 2007, Delphi XE, Delphi XE2, Delphi XE3, Development, Software Development Tagged: ibm websphere mq, software, stack overflow, technology
