Screen.ActiveForm.Picture1.TEXTHEIGHT("text") May Hang Machine

ID: Q90908


The information in this article applies to:
  • Microsoft Visual Basic Standard and Professional Editions for MS-DOS, version 1.0


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("some text") 
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("some text") 
-or-

   PRINT Picture1.TEXTHEIGHT("some text") 
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 :
Version : MS-DOS:1.0
Platform : MS-DOS
Issue type :


Last Reviewed: December 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.