Knowledge Base

FIX: VB5.EXE Application Error with UserControls in Project

Article ID: 189499

Article Last Modified on 11/18/2003


APPLIES TO


This article was previously published under Q189499

SYMPTOMS

Large projects or project groups that contain UserControls that are not compiled OCXs may experience the following application error:
The instruction at "0x0fbb54bb" referenced memory at "0x00000000". The memory could not be "read".
This behavior occurs when either compiling the project or opening a form that may contain a UserControl.

CAUSE

The UserControls contain either references to global objects or circular references to Forms/Modules within the project.

RESOLUTION

There are three possible resolutions to this issue:

  • Select Options from the Tools menu, select the General tab, and then deselect Background Compile.
  • Use compiled OCXs in the project instead of having a UserControl project as part of the Project Group.
  • Late bind global object references within UserControls and attach them to instances at run-time.

STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug has been corrected in Visual Basic version 6.0.

Additional query words: kbDSupport kbCrtl kbVBp500bug kbdss kbVBp kbVBp600fix

Keywords: kbbug kbfix KB189499