Page 1 of 1

TOraSession connect problem

Posted: Mon 22 May 2006 10:41
by Milan Bacik
I have problem with TOraSession in BDS2006. I am using ODAC 5.70 test.
in header
TOraSession *OraSession;
in cpp
OraSession = new TOraSession(NULL);
OraSession->ConnectPrompt = false;
OraSession->Username = "User";
OraSession->Password = "Pass";
OraSession->Server = "Server";
OraSession->Connected = true;

I have tryed to use Design time component with same result. If i copy-pasted this component to small test project it works. In design time i can set Connected property to true without error, but recieved error in runtime, when component is created.

Error:
EAccessViolation

Call Stack:
:7c81eb33 kernel32.RaiseException + 0x52
:51f26a4c rtl100.@System@@BeforeDestruction$qqrp14System@TObjectzc + 0x48
:7c90378b ntdll.RtlConvertUlongToLargeInteger + 0x46
:7c90eafa ntdll.KiUserExceptionDispatcher + 0xe
:7c90104b ntdll.RtlEnterCriticalSection + 0x46
:00e87c60 odac100.@Oraclasses@OCIInit$qqrv + 0x8
:00e88def odac100.@Oraclasses@TOCIConnection@Connect$qqrx17System@AnsiString + 0x3f
:00e1d29c dac100.@Dbaccess@TCustomDAConnection@DoConnect$qqrv + 0x88
:00eaa8f5 ; __roundToInt64
:00e1d446 dac100.@Dbaccess@TCustomDAConnection@PerformConnect$qqro + 0x3a
:00eacd86 odac100.@Ora@TOraSession@SetConnected$qqro + 0x46
:015F0A10 TDMRezident::TDMRezident(this=:0294BCA0, Owner=:02273AE0)
:5207946c vcl100.@Forms@TApplication@CreateForm$qqrp17System@TMetaClasspv + 0x34
:00404B7D WinMain( =:00400000, =NULL, =:00141EF6, =9)
:32778e1b ; C:\WINDOWS\system32\CC3270MT.DLL

What is wrong ?

Posted: Fri 26 May 2006 08:45
by Challenger
Please specify the exact version of ODAC you use and whether you have any updates from Borland installed.