Why Are You Here?
You made some changes in past few days, no, nothing special, and then you released your executable like always. All of a sudden someone informed you that the application no longer runs on their machine, but it displays an error message saying "Error Loading MIDAS.DLL"! So you googled it and you are here. (If this is not the case you can skip my answer)
What Has Happened?
Well, you have used one of TCustomClientDataSet
descendants, probably TClientDataSet
, and it needs Midas.DLL
.
How can you fix this?
You have two options:
Deploy Midas.DLL with your application.
Pros: Your executable remains smaller.
Cons: You need to get prepared for a war against a brutal army consisting of OS, anti viruses, installer makers, ..., and the midas itself (read OP's question again for an example!).
Add the MidasLib
unit to your project's uses clause.
- Pros:
if (not FMuslim) or (not IsRamadan) then
you can get some coffee and enjoy it.
- Cons: Your executable gets bigger (113,664 against 1,124,352 bytes for a just created console application in Delphi2010).
PM: You're right, this is not the right answer to OP's question. Yes, RRUZ has a comment up there, and yes, there's an older question with an accepted answer.
But time has passed and Google still insists on this page. I'm pretty sure that such answer could help a noticeable portion of those 24k people who have visited this page during past 4 years.
this article
confirms that by "If you need to distribute this application you may also need to deploy this library to a location where the application can find it." which means that your app. is not searching for midas.dll in some predefined path, but is most probably using thecommon DLL search mechanism
). – Kalmick