I built my application with many dll (for reporting)
but when i load dll, I reconnect TAdoConnection.. I want to avoid this
reconnection.. but how to do this ??.
I have try passing parameter ADOConnectionObject :_Connection from exe to dll
so when i load dll,
i write dm.dbCon.ConnectionObject := AdoCon;
dm -> datamodule
dbcon -> TADOConnection
adoCon -> _Connection
it's succesfully. but after exit from dll, back to exe..
my connection is lost cause of FreeLibrary(dlllib)
before freeLibrary, i write dm.dbCon.ConnectionObject := Nil;
any sugesstion about this problem.
thank's in advance