2.00
WINDOWS
kbenv kbbuglist
The information in this article applies to:
- Microsoft Visual Basic programming system for Windows, version 2.0
SYMPTOMS
You may encounter the error message, "Module has changed; must reset"
after which the program ends and returns to design mode. Setting
a watch point contributes to the problem.
In general, this problem occurs under the following conditions:
- A global, form, or module-level watch point is set.
- The watch point refers to a Visual Basic object such as a form or
control.
- The watch point is evaluated from break mode when a modal form is
showing.
STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic
version 2.0 for Windows. This bug was corrected in Microsoft Visual
Basic version 3.0 for Windows.
MORE INFORMATION
Steps to Reproduce Problem
- Start Visual Basic, or from the File menu, choose New Project
(ALT, F, N) if Visual Basic is already running.
- From the File menu, choose Open Project and open the sample program
MDINOTE.MAK. This sample is located in the SAMPLES\MDI directory in your
Visual Basic directory.
- From the Debug menu, choose Add Watch (ALT, D, A).
- In the Add Watch dialog, enter Forms.Count as the watch expression and
choose the OK button.
- From the Run menu, choose Start (ALT, R, S) or press the F5 key to run
the sample.
- From the File menu of the MDINOTE sample program, choose Open
(ALT, F, O).
- From the Visual Basic Debug menu, choose Break (ALT, R, k) or press
CTRL+BREAK to break execution.
- Locate the cmdcancel_Click event procedure within FILEOPEN.FRM.
From the Debug menu, choose Toggle breakpoint (ALT, D, T) or press the
F9 key to set a break point on the following statement:
FileForm.txtFileName.Text = Empty
- From the Run menu, choose Continue (ALT, R, C) or press the F5 key to
continue running.
- Choose the Cancel button. Execution stops at the break point you set
in step 8.
- From the Debug menu, choose Single step (ALT, D, S) or press the F8 key
to single step.
- Repeat step 11 until you receive the following error message:
Module has changed; must reset
- Choose the OK button, and Visual Basic will reset from break mode and
return to design mode.
|