ODAC and dlls

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
CyberK

ODAC and dlls

Post by CyberK » Mon 03 Apr 2006 11:05

What I have is the following situation

First dll (standart dll, not using sharemem) that contains TORASession Object connected to Oracle XE.

And it works fine

Now I want to connect to the DB from other dll (also no sharemem) or from main executable module.

I wanted to implement it by creating new TOraSession object in the main exe and assigning TOraSession.OCISvcCtx pointer from the first dll from it. This way I understand both of the objects will share the same connection..

But what I noticed that simple by adding ORA to the Uses of the second dll or executable causes program to hang on exit, or even crash with Access Violations.

Does anyone have any ideas what could cause it, or how to fix it?

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 04 Apr 2006 11:25

Please refer to our DLL demo.

CyberK

Post by CyberK » Tue 04 Apr 2006 13:52

i did, the dll demo showed another sittuation, but i added initoci anyway
but it still didnt help,
i was investigating this issue and found that it possible caused by trial protection..
So i downloaded pirated version of ODAC (just to test if i was right, dont worry, we dont use pirated software :D )
and yep.. the code worked smoothly, without any errors...

My conclusion that it was caused by Trial protection..

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Wed 05 Apr 2006 09:00

Yes, you are right. This is known bug of trial version.

Post Reply