Microsoft KB Archive/90908

= Screen.ActiveForm.Picture1.TEXTHEIGHT(&quot;text&quot;) May Hang Machine =

PSS ID Number: 90908

Article Last Modified on 1/8/2003

-

The information in this article applies to:


 * Microsoft Visual Basic for MS-DOS 1.0

-



This article was previously published under Q90908



SYMPTOMS
If you use the following line of code in a compiled application with a picture control on a form, the program may hang: PRINT Screen.ActiveForm.Picture1.TEXTHEIGHT(&quot;some text&quot;) This problem also occurs if you use the TEXTWIDTH method instead of TEXTHEIGHT.



STATUS
Microsoft has confirmed this to be a bug in Microsoft Visual Basic for MS-DOS, version 1.0. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.



MORE INFORMATION
The problem does not occur in the interpretive environment (VBDOS.EXE) or if you write the statement in a different way, such as: PRINT Screen.ActiveControl.TEXTHEIGHT(&quot;some text&quot;)

-or-

PRINT Picture1.TEXTHEIGHT(&quot;some text&quot;) It is only when using the code described further above in a compiled application that will cause the hang.

If you are running this application through an MS-DOS session in Windows, the following error will be displayed:

This application has violated system integrity...restart your computer.

Additional query words: VBmsdos buglist1.00 1.00

Keywords: KB90908

Technology: kbAudDeveloper kbVB100DOS kbVBSearch kbZNotKeyword3

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.