Print Thread
Page 2 of 2 1 2
Re: Access Violation in ORA73.dll w/3.4.6
#3367 03/04/03 10:59 PM
Joined: Aug 1999
Posts: 22,220
Member
Offline
Member
Joined: Aug 1999
Posts: 22,220
Note that version 3.4.6 will do this mutexing for you if TOracleSession.ThreadSafe = True.

------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Access Violation in ORA73.dll w/3.4.6
#3368 03/05/03 06:48 PM
Joined: Oct 1999
Posts: 21
France
C
cgi Offline
Member
Offline
Member
C
Joined: Oct 1999
Posts: 21
France
test ok [Linked Image] !!

Modification :
I create a TcriticalSection and i "protect" all Connected action of OracleSession.

example :

**Main of Service
Definition critical section(SessionCriticalSection)

**procedure TService.ServiceStart
Create critical section (SessionCriticalSection)

-> and for all thread
**procedure TXYZThread.execute;

XYZDM := TXYZDM.Create(nil);
SessionCriticalSection.Enter;
try
XYZDM.oraSession.Connected := True;
finally
SessionCriticalSection.Leave;
end;


Thanks (a lot) for help !!
---------
nb: i don't test TOracleSession.ThreadSafe = True.

[This message has been edited by cgi (edited 05 March 2003).]


Christian Gincheleau
Page 2 of 2 1 2

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.039s Queries: 14 (0.014s) Memory: 2.5250 MB (Peak: 3.0464 MB) Data Comp: Off Server Time: 2024-05-17 04:23:43 UTC
Valid HTML 5 and Valid CSS