Are RTTI enabled ?
Baptiste.
----- Original Message -----
From: "lacall" <la...@mi...>
To: <cpp...@li...>
Sent: Saturday, March 09, 2002 3:00 PM
Subject: [Cppunit-devel] TestRunner with MFC
> I'm wondering if someone could point me in the right direction on some
kind
> of bug in the way I'm using TestRunner. I seem to be using it exactly like
> in the example code, and when I call runner.run() it launches the
TestRunner
> dialog just fine. But when I click the "Browse" button in TestRunner, I
get
> a "debug assertion failed" in ...\mfc\src\dlgdata.cpp line 43. It is where
> it is calling CDataExchange::PrepareCtrl(...) and the hWinCtrl is null (I
> believe it is trying to get the handle to the parent dialog, but it gets a
> null value).
>
> Interestingly, the tests seem to work ok with the TextTestRunner when
called
> identically from the app. I stepped through it and it worked great (except
> that the std::cout test results aren't displayed, due to it being an MFC
> app).
>
> Any ideas what I may be doing wrong to cause the error with TestRunner's
> Browse button? I have stepped through the code extensively, comparing it
to
> the same code and execution path for the provided cppunit MFC examples,
and
> can't tell what's different; maybe this particular MFC issue is just over
my
> head a bit. Many thanks for any ideas!
>
> Luke Call
> EDM Group
> Micron Technology, Boise
>
>
> _______________________________________________
> Cppunit-devel mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppunit-devel
>
|