I think I'm doing something stupid; anyway I'm trying to create a session instance in a thread's constructor given in this code
m_oraSession = new TOracleSession(NULL);
m_oraSession->AutoCommit = true;
m_oraSession->LogonUsername = username;
m_oraSession->LogonPassword = userPassword;
m_oraSession->LogonDatabase = databaseName;
m_oraSession->LogOn();
I get "Session Undefined" error in the constructor of a thread where username, password and DB are parameters. What am I doing incorrect; to create a session instance in a thread?
m_oraSession = new TOracleSession(NULL);
m_oraSession->AutoCommit = true;
m_oraSession->LogonUsername = username;
m_oraSession->LogonPassword = userPassword;
m_oraSession->LogonDatabase = databaseName;
m_oraSession->LogOn();
I get "Session Undefined" error in the constructor of a thread where username, password and DB are parameters. What am I doing incorrect; to create a session instance in a thread?