problem with CDaoDataBase in Thread
-
when i am using CdaoDataBase in main application and close it ,it works success but when i used cdaodatabase class in thread and close database and after that close application. it gives error. daocore.cpp line 40 m_Daoworkspace.release();
-
when i am using CdaoDataBase in main application and close it ,it works success but when i used cdaodatabase class in thread and close database and after that close application. it gives error. daocore.cpp line 40 m_Daoworkspace.release();
Shivanand Gupta wrote:
it gives error.
Are we somehow supposed to guess what that error is? Have you put a breakpoint on line 40 of
daocore.cpp
and used the debugger to look at the code?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Shivanand Gupta wrote:
it gives error.
Are we somehow supposed to guess what that error is? Have you put a breakpoint on line 40 of
daocore.cpp
and used the debugger to look at the code?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
i have check by breakpoint. error occur when we close the application where CdaoDatabase class used in thread .
-
i have check by breakpoint. error occur when we close the application where CdaoDatabase class used in thread .
Shivanand Gupta wrote:
error occur...
What error?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Shivanand Gupta wrote:
error occur...
What error?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
when we close application then applicationn perform this line of code (daocore.cpp file) // Clean up engine object if necessary if (pDaoState->m_pDAODBEngine != NULL) { pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line pDaoState->m_pDAODBEngine = NULL; }
-
when we close application then applicationn perform this line of code (daocore.cpp file) // Clean up engine object if necessary if (pDaoState->m_pDAODBEngine != NULL) { pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line pDaoState->m_pDAODBEngine = NULL; }
Shivanand Gupta wrote:
pDaoState->m_pDAODBEngine->Release(); //error ouccr in this line
Ok, but what's the error? Is it an assertion, an exception, or something else?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius