hsteigstra
Member²
On January 4 I posted a message with a problem that occurred when opening two database connections in two ISAPI thread simulataneously. I solved my problem then by adding a critical section splitting up the two connections.
The final answer from AA was that the problem would be fixed in the next version.
After the latest version (?), still using the critical section, the problem returned(occasionally) and I get the error on connecting two sessions: "TNS: lost contact". Probably the error occurs on the first session when the second session connects.
When I remove the critical section the system seems to be much more stable, but not perfect. The error rate is much lower. Still incidently GPF's and TNS errors (lost contact / cannot locate server).
For your information the relevant code snibbit:
if not ora.Connected then
try
OraSection.Enter;
try
ora.Connected:=true;
inc(OraSection.nSessions);
finally
OraSection.Leave;
end;
except
on e:Exception do ........
System info: D5 Update pack 1, Win98 build 4.10.2222 A, Pentium III 450 Mhz, 256Mb, DOA 3.4.6.1, OCI 8, Oracle 8.0.4.2.7
Any idea what is the cause?
Thanks, Herman Steigstra
The final answer from AA was that the problem would be fixed in the next version.
After the latest version (?), still using the critical section, the problem returned(occasionally) and I get the error on connecting two sessions: "TNS: lost contact". Probably the error occurs on the first session when the second session connects.
When I remove the critical section the system seems to be much more stable, but not perfect. The error rate is much lower. Still incidently GPF's and TNS errors (lost contact / cannot locate server).
For your information the relevant code snibbit:
if not ora.Connected then
try
OraSection.Enter;
try
ora.Connected:=true;
inc(OraSection.nSessions);
finally
OraSection.Leave;
end;
except
on e:Exception do ........
System info: D5 Update pack 1, Win98 build 4.10.2222 A, Pentium III 450 Mhz, 256Mb, DOA 3.4.6.1, OCI 8, Oracle 8.0.4.2.7
Any idea what is the cause?
Thanks, Herman Steigstra