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?
ODAC and dlls
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
)
and yep.. the code worked smoothly, without any errors...
My conclusion that it was caused by Trial protection..
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

and yep.. the code worked smoothly, without any errors...
My conclusion that it was caused by Trial protection..
-
- Devart Team
- Posts: 925
- Joined: Thu 17 Nov 2005 10:53