I’m trying to get the TDADBSessionManager to work without success. No session is added to the DB.
When debugging the code (and looking for the InsertSession command), the only place where InsertSession is called is in the DoReleaseSession method, but DoReleaseSession is never called?
When ClearSessionOnDestroy is True, the destructor raises an error “Schema must be assigned”.
While preparing a testcase I found my mistake about the sessions. I simply forgot to implement the necessary things… (Suggestion: add the SQL statements in the unit uDADBSessionManager to the documentation).
But the bug when putting a TDADBSessionManager persists. Easy to reproduce: create new project, add a datamodule, put a TDADBSessionManager on that datamodule and save. Message “Schema must be assigned” is displayed.
Close the datamodule and try to reopen it. Same message.