Page 1 of 1

TOraSession

Posted: Fri 21 Jan 2005 09:36
by Starina
Hi.

How can the different TOraSession component instances use
the same Oracle session?

Posted: Fri 21 Jan 2005 15:50
by Alex
You can use TOraSession.AssignConnect method for this task. Please see TOraSession.AssignConnect topic in ODAC help.

TOraSession

Posted: Fri 06 May 2005 06:51
by Starina
Hi.

I have an application and a dynamic-link library. This modules use different TOraSession instances. Can I use only one Oracle session shared between the TOraSession instances (not using ShareMem unit)?

Posted: Tue 10 May 2005 09:57
by Alex
You can use TOraSession.AssignConnect feature in your situation as in usual application.

AssignConnect

Posted: Wed 11 May 2005 08:58
by Starina
Please, small demo.

Posted: Thu 12 May 2005 11:14
by Alex
Sorry, it was my mistake, if You want to avoid using ShareMem unit in DLL then You need to realize AssignConnect functionality manually, i.e. pass all TOraSession properties to the DLL then create TOraSession instance and after that set its properties with passed ones, Also You must keep in mind that
you should avoid passing strings to DLL (use for example PChar).