The thing is the SQL query could not be done by thread, and I had tried the timer but not working. Here is the sample code I use:
///Create database connection
CDatabase *m_dbPacsDB;
m_dbPacsDB=new CDatabase();
TRY
{...
I'm developing an application with big database content. Submitting unreasonable query criteria may result in a long database query time. How to stop the query when I got the interrupt message.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.