I have a lot of part of our application who use (internal build) dll's, these dll use the Oracle Session created and connected by the parent application (Pointer to the oraclesession send in the exported functions of the dll.
all is working fine, but when i finish to use the dll, after the FreeLibrary, the OracleSession of my Parent application is un-usable, and even if i release it and recreate a new oracle session, i'v got access violation...
- is it a problem in the Finalize of some odac units who free some arrays or something like that ?
- do you have idea how to solve my problem ?
many thanks !
edit:
i have check in a old source of odac 6.0, and we have this in ora.pas
Code: Select all
finalization
if Sessions nil then begin
DisconnectSessions;
Sessions.Free;
Sessions := nil;
end;Unfortunately, we use the no-source version...