An assertion is hit in the Afxwin2.inl file when you try to launch an MFC MDI application through a document (172336)
The information in this article applies to:
- The Component Gallery, when used with:
- Microsoft Visual C++, 32-bit Editions 4.0
- Microsoft Visual C++, 32-bit Editions 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q172336 SYMPTOMS When launching an MFC MDI application through a document
from Explorer, an assertion is hit in the Afxwin2.inl file. This assertion only
occurs if the application contains the Tip of the Day and Splash Screen
components from the Component Gallery. CAUSE When an application is launched by opening its document,
MFC delays showing the main frame window. This delay is enough to cause the Tip
of the Day modal dialog box to be parented off the modeless Splash Screen
dialog box instead of the main frame. When the timer expires for the Splash
Screen, it destroys itself and its children including the Tip of the Day dialog
box. MFC still tries to process messages for that dialog box, thereby causing
the assertion. RESOLUTION Delay showing the Tip of the Day dialog until after the
Splash Screen destroys itself. STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/3/2005 |
---|
Keywords: | kbtshoot kbprb KbUIDesign kbwizard KB172336 kbAudDeveloper |
---|
|