CppUnit 1.10.2, VC6.0 - problem with DAO...

Help
Otroson
2009-04-28
2013-04-22
  • Otroson
    Otroson
    2009-04-28

    Hello.

    I have a problem.
    I use MfcUi dialog for testing. Everything is all right...
    But now I'm testing one method of class, and this method loads data from database by CDaoRecordset, set data by Execute, etc.
    DAO technologie doesn't support multithreading... Test finished with unknown exception...
    I need run cppunit tests from the same instance/thread like application...
    Is it possible? And how? Piece of code...?

    Thanks...

     
    • Otroson
      Otroson
      2009-04-29

      I have solved this problem. There are no parameters for disable threads. I had to change source code of tesrunner (ActiveTest.cpp). Now I can test methods with CDao... objects.