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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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.)
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?
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.
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, ...