Accecc Violation on OraQuery Execute

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
DimaKalugin
Posts: 2
Joined: Fri 31 Jul 2009 07:07

Accecc Violation on OraQuery Execute

Post by DimaKalugin » Fri 31 Jul 2009 07:21

I have Main application and DLL apllication.

In the main application I have a set of Queries.

And I can Execute them until the LoadLibrary(MyDll);
after that Every OraQuery.Execute causes Access violation at address 00000000. Read of address 00000000

I figure out some stranges and here they are
Main application (just a part of source)
qModules.Execue;
LoadLibrary(MyDll);
qGet.Execute;

THE DLL Application
uses
ShareMem,
SysUtils,
Classes,
Windows,
Forms ,
Graphics,
Controls,
OraSmart,
Dialogs;

{$R *.res}

begin

end.

And if Im loading an application like this its Access Violation on second execute in main, but If we remove uses OraSmart from Dll every execute works perfectly without any problem.

Any ideas what problem can it be?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 06 Aug 2009 07:57

Have you built your main application and DLL with runtime packages?

DimaKalugin
Posts: 2
Joined: Fri 31 Jul 2009 07:07

Post by DimaKalugin » Sun 09 Aug 2009 09:07

No, without runtime

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 11 Aug 2009 07:38

We could not reproduce the problem. Please send to support*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Also supply us the following information
- exact version of ODAC including build number (see Oracle | About ODAC in the IDE menu);
- exact version of Delphi.

Post Reply