Menu

Browsing in MFC TestRunner causes Runtime Err

Help
Anonymous
2002-08-27
2002-10-30
  • Anonymous

    Anonymous - 2002-08-27

    Hi,

    the MFC TestRunner causes the Runtime Error "abnormal program termination" when I click the Browse-Button. The crash occures while creating the TreeHierarchy-Dialog.

    Does anybody know what to do?

    Thanks.

     
    • Wolfgang Stoecher

      I think you need to turn on RTTI (run-time type info) for your project.

      (as far as it concerns me: stay in help forum when asking for help.)

       
    • Anonymous

      Anonymous - 2002-08-27

      Thanks a lot. I got one step further. I can select my tests and run them. But now the program crashes when I call "CDocTemplate::OpenDocumentFile" inside my test. Using the TextUi::TestRunner does not cause this problem. But I would like to use the MFC version as the whole program is an MFC application.
      Do you have a suggestion for that?

       
      • Gary

        Gary - 2002-10-30

        I think this is a similar problem to that which I encountered and reported. The CppUnit MFC UI seems to run in a separate thread to your application, with the result that you have seen. Thanks for your workaround suggestion, though.

         
    • Wolfgang Stoecher

      I never tried to incorporate the doc-view-architecture into my tests. You might try to separate the things
      you want to test from the MFC.

      See also:
      http://groups.yahoo.com/group/agile-testing
      http://groups.yahoo.com/group/refactoring
      and look for sources on XP, unit testing, ...

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.