I would like to have a fix or workaround for this annoying bug.
If an exit() is called after a call to TOraSession::Connect(), a gpf is raised.
To reproduce, start a new vcl app project, drop a TOraSession on main form.
double click the component, uncheck the login prompt checkbox, and specify valid credentials for a server.
In the mainform's constructor, type the following code:
Code: Select all
exit(1);
OraSession1->Connect();
OraSession1->Disconnect();
Then change the code by moving the exit after the disconnect:
Code: Select all
OraSession1->Connect();
OraSession1->Disconnect();
exit(1);
This is very annoying: we are converting apps to xe6 that need to return an exit code to the caller program, and it doesn't work anymore.
Is there any workaround we could use meanwhile?
Regards.