I am developing a console application using C++ Builder 6 and Direct Oracle Access 4.0.5.0. The code has been compiled without errors. However, when excuting the application I have got this exception runtime error message "Project PrintOcc.exe raised exception class EAccessViolation with message 'Access violation at address 004070D4. Read of address 74696F05'."
when trying to initialize the TOracleSession object:
Basically, I have initialize the TOracleSession like this:
---
TOracleSession * theSession;
if (!theSession->Connected)
{
theSession->LogonUsername = username;
theSession->LogonPassword = password;
theSession->LogonDatabase = servername;
theSession->Connected=true;
}
---
username, password and servername are AnsiString type.
This exception is raison as soon as I try to use
the TOracleSession object "theSession".
What am I doing wrong?
Thanks in advance for your help.
when trying to initialize the TOracleSession object:
Basically, I have initialize the TOracleSession like this:
---
TOracleSession * theSession;
if (!theSession->Connected)
{
theSession->LogonUsername = username;
theSession->LogonPassword = password;
theSession->LogonDatabase = servername;
theSession->Connected=true;
}
---
username, password and servername are AnsiString type.
This exception is raison as soon as I try to use
the TOracleSession object "theSession".
What am I doing wrong?
Thanks in advance for your help.