Hi,
I create a TOracleQuery in my application like this (i.e. in a click event of a button):
The code works fine .. but how/when do i call the Free-method? Both the events (executed, finished) are fired okey. If I call the free method in the Finished-event I get a major exception. If I just run the code as above, the application thread count increases each time.
Regards,
Staffan
I create a TOracleQuery in my application like this (i.e. in a click event of a button):
Code:
with TOracleQuery.Create(Application) do try
Session := OSession;
Threaded := True;
SQL.Add('some sql stmt');
OnThreadExecuted := OQThreadExecuted;
OnThreadFinished := OQThreadFinished;
Execute;
exception
ShowMessage('something did go wrong ..');
end;
Regards,
Staffan