Page 1 of 1

Accecc Violation on OraQuery Execute

Posted: Fri 31 Jul 2009 07:21
by DimaKalugin
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?

Posted: Thu 06 Aug 2009 07:57
by Plash
Have you built your main application and DLL with runtime packages?

Posted: Sun 09 Aug 2009 09:07
by DimaKalugin
No, without runtime

Posted: Tue 11 Aug 2009 07:38
by Plash
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.