I have a very simple C++ application with 2 buttons and one TOracleSession.
Here is the buttons event handlers:
//----------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
OracleSession1->LogonUsername = "SYSDBA";
OracleSession1->LogonPassword = "nwbSG0101";
OracleSession1->LogonDatabase = "FAMS";
try
{
OracleSession1->LogOn();
}
catch(Exception &E)
{
ShowMessage("Didn't connect: "+E.Message);
}
}
//-------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
OracleSession1->LogOff();
}
//--------------------------------------------------------
The values are incorrect for the database, and I'd expect to see an exception action.
While the exception is thrown (the IDE is reporting "Project OraConnect.exe raised exception class EOracleError with message 'ORA-12154: TNS: could not resolve the connect identifier specified.',
the catch(Exception &E) is never reached. Instead, when Continue button is pressed, the IDE reports
Project OraConnect.exe raised exception class $C0000005 ACCESS VIOLATION
There is very little code in this project, which could create an access violation.
Clicking the logoff button exhibits no such violation.
This is target platform 64-bit Windows.
I have 64-bit Oracle installed, hence cannot build with the 32-bit Windows platform (tried, and received message Data :01F8D4EC L"Initialization error\r\nCould not initialize \"C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll\"\r\nMake sure you have the 32 bits Oracle Client installed.\r\n\r\nOracleHomeKey: \r\nOracleHomeDir: C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\r\nFound: oci.dll\r\nUsing: C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll\r\nLoadLibrary(C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll) returned 0")
Here is the buttons event handlers:
//----------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
OracleSession1->LogonUsername = "SYSDBA";
OracleSession1->LogonPassword = "nwbSG0101";
OracleSession1->LogonDatabase = "FAMS";
try
{
OracleSession1->LogOn();
}
catch(Exception &E)
{
ShowMessage("Didn't connect: "+E.Message);
}
}
//-------------------------------------------------------
void __fastcall TForm1::Button2Click(TObject *Sender)
{
OracleSession1->LogOff();
}
//--------------------------------------------------------
The values are incorrect for the database, and I'd expect to see an exception action.
While the exception is thrown (the IDE is reporting "Project OraConnect.exe raised exception class EOracleError with message 'ORA-12154: TNS: could not resolve the connect identifier specified.',
the catch(Exception &E) is never reached. Instead, when Continue button is pressed, the IDE reports
Project OraConnect.exe raised exception class $C0000005 ACCESS VIOLATION
There is very little code in this project, which could create an access violation.
Clicking the logoff button exhibits no such violation.
This is target platform 64-bit Windows.
I have 64-bit Oracle installed, hence cannot build with the 32-bit Windows platform (tried, and received message Data :01F8D4EC L"Initialization error\r\nCould not initialize \"C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll\"\r\nMake sure you have the 32 bits Oracle Client installed.\r\n\r\nOracleHomeKey: \r\nOracleHomeDir: C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\r\nFound: oci.dll\r\nUsing: C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll\r\nLoadLibrary(C:\\oraclexe\\app\\oracle\\product\\11.2.0\\server\\bin\\oci.dll) returned 0")