Session Undefined with MIDAS

jimpoe

Member²
We are using DOA with MIDAS. On some of our machines we get 'Session Undefined' errors usually when the application has been idle for a few minutes. We cannot duplicate this on our development machines. I was wondering if anyone else has seen this problem.

Thanks

Jim
 
I have not seen this before, but as far as I can see this can only mean that a database access component is being used that is not linked to a TOracleSession. Either the component was never linked to a session, or the session property was set to nil, or the linked session was freed.

------------------
Marco Kalter
Allround Automations
 
Thanks for the reply.

When a remotedatamodule is created I have a routine that loops through the components and explicitly sets the session property for each component that has a session property. The "session not defined" error usually occurs on a dataset that was previously used. It also seems to be related to the application sitting in "idle" for a period of time. I do not have any code that explicitly clears the session property or frees the session component.

Are you aware of any timing out parameters in your components or with Oracle?
 
The only component that has a time-out is the TOracleEvent component. Maybe you have your own time-out mechanism in your application?

In any case, this time-out event must either clear a session property or create/use a component that has a nil session property.

------------------
Marco Kalter
Allround Automations
 
Back
Top