Article ID: 95499 - Last Review: October 29, 2003 - Revision: 2.0 FIX: Stack Fault May Occur If Trapping Divide By ZeroThis article was previously published under Q95499 On This PageSYMPTOMS
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.
MORE INFORMATIONSteps to Reproduce Problem
APPLIES TO
| Article Translations
|

Back to the top
