Board index » Visual Studio » DoModal Broken in Debug Mode in VS2005 SP1
|
c-bee1
|
DoModal Broken in Debug Mode in VS2005 SP1
Visual Studio281
A new test was added to dlgcore.cpp in SP1 that breaks the DoModal call in debugging mode. In the function CreateDlgIndirect() line 239: #ifdef _DEBUG if ( AfxGetApp()->IsKindOf( RUNTIME_CLASS( COleControlModule ) ) ) { TRACE(traceAppMsg, 0, "Warning: Creating dialog from within a COleControlModule application is not a supported scenario.\n"); } #endif AfxGetApp() returns NULL since there is no parent hence...boom. Release version works fine since this check is not made. Is there a way around this to fake a parent or...? - |
