FIX: Assert in Winocc.cpp, Line 331

Article translations Article translations
Article ID: 216850 - View products that this article applies to.
This article was previously published under Q216850
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

This problem occurs when running an application generated by the Microsoft Foundation Classes (MFC) AppWizard in Visual C++ 6.0 with the following features:
  • MFC AppWizard - Step 1: Select Single Document.
  • MFC AppWizard - Step 1: Clear Document/View architecture support.
  • MFC AppWizard - Step 4: Clear Docking toolbar.
  • MFC AppWizard - Step 4: Clear Inital status bar.
The following error occurs after building and executing the application:
Debug Assertion Failed!

Program: <path>\<name>.exe
File: winocc.cpp
Line: 331

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base:
194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

Steps to Reproduce the Behavior

  1. From the Visual C++ 6.0 File menu, click New.
  2. Select MFC AppWizard (Exe), name the project, and click OK.
  3. In MFC AppWizard - Step 1, select Single document and clear Document/View architecture support.
  4. In MFC AppWizard - Step 2, accept the default options.
  5. In MFC AppWizard - Step 3, accept the default options.
  6. In MFC AppWizard - Step 4, clear Docking toolbar and Initial status bar.
  7. Click Finish, and build the project.
  8. Run the application.

Properties

Article ID: 216850 - Last Review: February 21, 2014 - Revision: 2.0
APPLIES TO
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
Keywords: 
kbnosurvey kbarchive kbappwizard kbbug kbfix kbide kbvs600sp3fix KB216850

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com