cannot load dbexpmda40.dll (ISAPI)

Discussion of open issues, suggestions and bugs regarding usage of dbExpress drivers for MySQL in Delphi and C++Builder
Post Reply
fritsr
Posts: 22
Joined: Tue 30 Oct 2007 03:49

cannot load dbexpmda40.dll (ISAPI)

Post by fritsr » Sun 04 Nov 2012 12:51

I've written an ISAPI DLL. It uses the most recent version of your dbExpress driver.

I've put dbexpmda40.dll in the same folder as the ISAPI DLL. I get an error: Unable to load dbexpmda40.dll (ErrorCode 126). It may be missing from the system path.

The strange part is that sometimes everything just works fine. This is probably caused by another project that uses dbexpmda40.dll. If it is already in memory, it just uses the loaded dbexpmda40.dll and everything is fine. But after a while (some hours), I can get the same error back again.

I had a similar problem long time ago in a quite different situation: http://forums.devart.com/viewtopic.php?f=11&t=12572

What can I do to make my ISAPI DLL find the dbexpmda40.dll ?

fritsr
Posts: 22
Joined: Tue 30 Oct 2007 03:49

Re: cannot load dbexpmda40.dll (ISAPI)

Post by fritsr » Sun 04 Nov 2012 22:44

It seems that the Delphi XE3 version looks for the 5.1.3.0 version of the dbexpmda40.dll. An older ASP.NET project uses this version of the dbexpmda40.dll. When this project is running my ISAPI DLL runs fine. After a few hours of not using it (or recycling the app pool) I get this error message.

When I put the 5.1.3.0 version of the dbexpmda40.dll in the folder with the ISAPI Dll, everything is fine....

fritsr
Posts: 22
Joined: Tue 30 Oct 2007 03:49

Re: cannot load dbexpmda40.dll (ISAPI)

Post by fritsr » Tue 06 Nov 2012 10:35

Is this a bug in the latest version?

AndreyZ

Re: cannot load dbexpmda40.dll (ISAPI)

Post by AndreyZ » Wed 07 Nov 2012 13:36

dbExpress driver for MySQL supports RAD Studio XE3 since version 6.0.1. So, to use dbExpress driver for MySQL under RAD Studio XE3, you should use the 6.0.1 version at the least. If you want several projects to use different versions of dbExpress driver for MySQL, you should supply the correspondent dbexpmda40.dll libraries with these projects.

fritsr
Posts: 22
Joined: Tue 30 Oct 2007 03:49

Re: cannot load dbexpmda40.dll (ISAPI)

Post by fritsr » Wed 07 Nov 2012 16:31

I thought I did install the latest version 6.0.1. But the compiled DLL searchs for and loads the 5.1.3.0 version of the dbexpmda40.dll.

AndreyZ

Re: cannot load dbexpmda40.dll (ISAPI)

Post by AndreyZ » Thu 08 Nov 2012 12:38

Please try the following:
- remove dbExpress driver for MySQL;
- remove all dbexpmda40.dll files from your computer;
- install dbExpress driver for MySQL 6.0.1;
- recompile your ISAPI dll using dbexpmda40.dll from dbExpress driver for MySQL 6.0.1.

fritsr
Posts: 22
Joined: Tue 30 Oct 2007 03:49

Re: cannot load dbexpmda40.dll (ISAPI)

Post by fritsr » Fri 09 Nov 2012 11:16

I did exactly as you described. I renamed al my dbexpmda40.dll files to Xdmexpmda40.dll after deinstalling the dbexpress driver.

But the result is the same. The DLL wants to have the the 5.1.3.0 version of the dbexpmda40.dll. It gives the error message when I put the latest version of the dbexpmda40.dll in the same folder.

In a previous version I had the source code of DbxDevartMySql.pas. I don't know if that would make a difference.

AndreyZ

Re: cannot load dbexpmda40.dll (ISAPI)

Post by AndreyZ » Fri 09 Nov 2012 12:50

Please send the source code of your ISAPI dll to andreyz*devart*com for the investigation.

Post Reply