Session undefined when opening project

petebr

Member
I have a large websnap project in D6 with about 100 units, each using 1-2 TODataset or TOQry's. I have one Datamodule with a TOSession that every uses for session info.
Occaisionally when opening this project I get "Session Undefined" for one of the units, and discover that the session property is empty - and will not 'see' the datamodule. Closing and opening several times will clear it, but it's frustrating.
Anyone else experienced this, or has an explaination?
 
Have you applied all Delphi 6 update packs? I think this issue may have been addressed in one of them.

------------------
Marco Kalter
Allround Automations
 
I have the same problem here with d5 Enterprise. The only solution i found: Always open the DataModule with the Session first, then the others depending units.

Sven
 
This always happens in any version of Delphi (up to D6 - havent tried in D7), and really isnt due to any problem in DOA.

You will see the same error upon loading a project that makes use of a BDE TDatabase component in a shared datamodule. The error comes from forms/datamodules being opened by the designer before the datamodule containing the database/connection/session component is loaded.

A better alternative to a single connection/session component IMO is to just use connection pooling.
 
Back
Top