Hello,
in my application I have the problem that I always get an access violation when the program is closed by the user. After a long search I traced down the source of the problem to a TOracleSession object. As soon as I established a connection by setting Session.Connected := true - the problem will occur when the application is closed. If I do not connect the session, I get no problem.
I've now tried various things like setting Session.Connected := false or calling Close on all Datasets involved before calling the final Destroy of the class which holds the DOA objects but nothing seems to work.
So what is the exact proper way to destroy the doa objects ?
I'm using DOA objects 4.0.7.1 in combination with Delphi7
Thanks...
in my application I have the problem that I always get an access violation when the program is closed by the user. After a long search I traced down the source of the problem to a TOracleSession object. As soon as I established a connection by setting Session.Connected := true - the problem will occur when the application is closed. If I do not connect the session, I get no problem.
I've now tried various things like setting Session.Connected := false or calling Close on all Datasets involved before calling the final Destroy of the class which holds the DOA objects but nothing seems to work.
So what is the exact proper way to destroy the doa objects ?
I'm using DOA objects 4.0.7.1 in combination with Delphi7
Thanks...