FIX: VB Painting Problem Occurs When Low on System Resources (93436)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
This article was previously published under Q93436 SYMPTOMS
Painting problems can occur if you have a large project with many forms,
or you have a small project and are low on system resources at the time the
small project is loaded.
CAUSE
These painting problems occur in the Visual Basic programming environment.
They usually occur after the environment displays an "Out of Memory" error.
This error may mean that your system is very low on system resources and
the Visual Basic for Windows programming environment is unable to use any
additional system resources to paint the next form or control.
An "Out of Memory" error can occur while coding in the design mode if you
place too much code or text into a module or form; there is a limit of 64K
of code for each form and module. Or it can occur if you try to add another
form or control to a project and are too low on system resources to perform
the operation.
WORKAROUND
It is a good idea to stop adding forms, controls, or code once you get this
error while the environment is in design mode. You need to close some of
your other Windows applications or reduce the number of forms or controls
that take up resources. A way to obtain the amount of available resources
is to check the About Program Manager... dialog box in the Help menu of the
Program Manager. This dialog box displays a percentage of the system
resources; if the percentage is getting below 10% or so, you are getting
close to receiving an "Out of Memory" error in the Visual Basic for Windows
programming environment.
STATUS
Microsoft has confirmed this to be a problem in the Standard and
Professional Editions of Microsoft Visual Basic for Windows, version 2.0.
This problem was corrected in Microsoft Visual Basic version 3.0 for
Windows.
Modification Type: | Major | Last Reviewed: | 10/30/2003 |
---|
Keywords: | kbbug kbfix KB93436 |
---|
|