ODAC and dlls
Posted: 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?
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?