VB Instant Scroll Bar: UAE Changing Min/Max in Changing Event

ID Number: Q81219

1.00

WINDOWS

buglist1.00

Summary:

If you change the Min or Max properties of an Instant Change Scroll

Bar custom control within the Changing event of the control, you can

encounter an "Unrecoverable Application Error" (UAE). When you trigger

the Changing event, the application will give you an "Out of stack

space" error message and then you will receive the UAE.

Microsoft has confirmed this to be a problem in Microsoft Visual Basic

Professional Toolkit version 1.0 for Windows. We are researching this

problem and will post new information here as it becomes available.

More Information:

Steps to Reproduce Problem

--------------------------

1. Run Visual Basic, or from the File menu, choose New Project (ALT,

F, N) if Visual Basic is already running. Form1 is created by

default.

2. From the File menu, choose Add File. In the Files box, select the

INSTSCRL.VBX custom control file. The Instant Change Scroll Bar

custom controls will appear in the toolbox.

3. Place an InstHScroll or InstVScroll control on Form1.

4. Press the F7 function key to open the Code window. In the Procedure

box, select the Changing event. Enter either of

the following statements:

' Note if you use the vertical scroll bar use InstVScroll

Sub InstHScroll1_Changing ( )

InstHScroll1.Max = InstHScroll1.Max - 10

' or remove the remark from the following statement

' InstHScroll1.Min = InstHScroll1.Min + 10

End Sub

5. From the Run menu, choose Start, or press F5.

6. Click and drag the scroll box (thumb) to generate a Changing event

and close the "Out of Stack Space" error.

7. From the Run menu, choose End. A UAE may be generated.

Additional reference words: 1.00