FIX: "Debug Assertion Failed!" Error Message When You Derive a Class from an MFC Extension DLL Base Class (813104)



The information in this article applies to:

  • Microsoft Visual C++ .NET (2002)
  • The Microsoft Foundation Classes (MFC)

Notice

When you install this package, the entry in Add/Remove programs shows the KB article number as Q810134.
This is build 9660.

SYMPTOMS

In debug builds, when you create an instance of a class that is derived from a class that is in a Microsoft Foundation Classes (MFC) extension DLL, you receive the following error message:
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: C:\WINNT\system32\regsvr32.exe
File: olefact.cpp
Line: 52
Typically, this problem occurs when a COM object class in an MFC regular DLL derives from a class in an MFC extension DLL. You see this error message when you register the COM object by using Regsvr32.exe.

RESOLUTION

Note You must rebuild your program (all EXE files and DLL files that use MFC) for the hotfix to work.

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem.

To resolve this problem, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.
   Date         Time   Size    File name
   -------------------------------------
   08-Jan-2003  01:26  55,709  Afx.h
   08-Jan-2003  01:28  11,396  Afx.inl

STATUS

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

Modification Type:MinorLast Reviewed:9/27/2005
Keywords:kbHotfixServer kbQFE kbQFE kbfix kbbug KB813104