FIX: Stack Fault May Occur If Trapping Divide By Zero (95499)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
This article was previously published under Q95499 SYMPTOMS
When trapping a divide by zero or divide overflow error (error numbers 11
and 6 respectively) in a Visual Basic program, you may receive a stack
fault if an MS-DOS session is also running. In this situation, the computer
may also hang (stop responding) or automatically reboot.
CAUSE
This problem is caused by the Windows mathematics exception handling, not
by Microsoft Visual Basic.
WORKAROUND
The only way to avoid this problem is to terminate all MS-DOS sessions
before running a Visual Basic application that traps divide by zero or
divide overflow errors.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Windows version
3.1. This problem has been corrected in Visual Basic version 4.0.
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kbbug kbenv kbfix KB95499 |
---|
|