Page 1 of 1

ODAC and dlls

Posted: Mon 03 Apr 2006 11:05
by CyberK
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?

Posted: Tue 04 Apr 2006 11:25
by Challenger
Please refer to our DLL demo.

Posted: Tue 04 Apr 2006 13:52
by CyberK
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..

Posted: Wed 05 Apr 2006 09:00
by Challenger
Yes, you are right. This is known bug of trial version.