Hi,
I have a piece of code that works properly when executed by an EXE, but that causes an "access violation" when run in in DLL:
session := TOracleSession.Create(nil);
session.LogonUsername := 'ric';
session.LogonPassword := 'pwd';
// and so on...
// so far so good
session.LogOn;
// this line never reached
InitOCI returns a success status, OCIDLL has the correct value of oci.dll, and so on... I really cannot figure out what is going on.
Any idea?
Thanks,
Ric
I have a piece of code that works properly when executed by an EXE, but that causes an "access violation" when run in in DLL:
session := TOracleSession.Create(nil);
session.LogonUsername := 'ric';
session.LogonPassword := 'pwd';
// and so on...
// so far so good
session.LogOn;
// this line never reached
InitOCI returns a success status, OCIDLL has the correct value of oci.dll, and so on... I really cannot figure out what is going on.
Any idea?
Thanks,
Ric