DLL project issue

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swright
Posts: 32
Joined: Wed 23 Dec 2009 12:19

DLL project issue

Post by swright » Fri 02 Sep 2016 15:38

Hello,

Today I updated SDAC for Delphi7 from 510d7Pro to 7.3.13

I have a problem with a DLL project when building a DLL with the newer version, the DLL I built this morning before the update is working without any issues.

After the update the DLL host test application makes the call to LoadLibrary and it just hangs and eventually It gets a "this application is not responding"


Event Viewer shows:-
Faulting application name: CarcSysTest.exe, version: 0.0.0.0, time stamp: 0x2a425e19
Faulting module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
Exception code: 0xc0000005
Fault offset: 0x03c868c1
Faulting process id: 0x25d0
Faulting application start time: 0x01d2052ae83f6967
Faulting application path: C:\CARCASE\MSSQL_SVN\Application\CarcSysTest.exe
Faulting module path: unknown


Any Ideas, could this be a problem with SDAC unit initialization in a DLL?

if I copy the DLL i built just before installing the newer SDAC into the folder the host application loads the DLL and all is working.

Other executable projects appear to be working ok.

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: DLL project issue

Post by azyk » Tue 06 Sep 2016 08:14

We couldn't reproduce the problem. Please, try to compose a small sample to demonstrate the problem and send it to andreyz*devart*com .

swright
Posts: 32
Joined: Wed 23 Dec 2009 12:19

Re: DLL project issue

Post by swright » Tue 06 Sep 2016 09:07

I was unable to at first so I spent some time tracking it down.

I get the problem in a DLL when a TDatamodule is created in a unit initialization where the datamodule is creating a TMSSQLMonitor component and it locks when it gets to TMSSQLMonitor.Loaded.

if you change Active to false then it will create the datamodule.

I have made an example:-

https://www.dropbox.com/s/a3h1l5ukkk8vj ... t.zip?dl=0

azyk
Devart Team
Posts: 1119
Joined: Fri 11 Apr 2014 11:47
Location: Alpha Centauri A

Re: DLL project issue

Post by azyk » Fri 09 Sep 2016 12:20

Thank you for the provided sample. We have reproduced the described issue and are now investigating them. We will notify you about the results as soon as any are available.

Post Reply