PRB: Visual Basic Causes a Divide Error in Module GDI.EXE (235035)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows 98
- Microsoft Visual Basic Learning Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows 98
- Microsoft Visual Basic Professional Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows 98
- Microsoft Visual Basic Professional Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows 98
- Microsoft Visual Basic Enterprise Edition for Windows 5.0, when used with:
- the operating system: Microsoft Windows 98
- Microsoft Visual Basic Enterprise Edition for Windows 6.0, when used with:
- the operating system: Microsoft Windows 98
This article was previously published under Q235035 SYMPTOMS
When you place a visual control (such as a PictureBox, Image, ListView, TreeView, RptText, RptLabel, and so forth)
on a form when you are running Visual Basic 5.0 or 6.0 on Microsoft Windows 98-based system, Visual Basic crashes with the following error messages
concerning the Graphics Device Interface (GDI) module:
An Error has occurred in your program, to continue working anyway click on Ignore...
If you click the Close button, the following error message is displayed:
The program has performed an illegal operation...
If you click the Details button, the following error message is displayed:
VB6 caused a divide error in module GDI.EXE at 0004:000006fe.
VB5 caused a divide error in module GDI.EXE at 0004:000006fe.
The exact memory address may vary.
CAUSE
This behavior occurs because of a video driver that is not compatible with Visual Basic 5.0 or 6.0.
RESOLUTION
Restarting in Safe Mode (which uses the Windows standard VGA driver) eliminates the errors. Obtain and install a newer version of the video driver or try
running the current video driver at a lower resolution or at a lower color depth.
REFERENCESFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
127139 Troubleshooting Video Problems in Windows
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbprb KB235035 kbAudDeveloper |
---|
|