ohh.. I found out that error occurs by checking the DB. There are some data not inserted into the DB but the program did not throw any CDBException. If it had thrown any exception, the error would have been logged to a file which I explicitly wrote(writing the m_strError to the log file).
Locking the database is not an option because the database must be accessible by another program which is continuously reading data from it.
This is a time critical/real-time program.
Is there any problem that you know of, that the CDBException cannot handle?
thank you...