I have a service application with many DOA
components running as a dcom service provider.
I connect through TDCOMconnect for TClientDatasets.
for the most part, it works great, servicing 50 users, however at least once a day, I get the message ... "oracle session undefined" or "Cannot preform operation on closed dataset".
When the connection is preformed, a new thread is created and a new Oracle session opened for that thread.
I believe it is a simple timing race. I have put in a test on the event "afterconnect" of the TDCOMconnect control which will keep issuing a simple query to return 0 rows. If it fails, wait 2 seconds. then try again.
Does anyone have a better idea of what's going on or a more elegant way to solve problem?
thanks in advance.
doug
components running as a dcom service provider.
I connect through TDCOMconnect for TClientDatasets.
for the most part, it works great, servicing 50 users, however at least once a day, I get the message ... "oracle session undefined" or "Cannot preform operation on closed dataset".
When the connection is preformed, a new thread is created and a new Oracle session opened for that thread.
I believe it is a simple timing race. I have put in a test on the event "afterconnect" of the TDCOMconnect control which will keep issuing a simple query to return 0 rows. If it fails, wait 2 seconds. then try again.
Does anyone have a better idea of what's going on or a more elegant way to solve problem?
thanks in advance.
doug