FIX: Calling Cursor.setPosition when using showDialog crashes NT (223341)
The information in this article applies to:
This article was previously published under Q223341 SYMPTOMS
When an application calls Cursor.setPosition in the constructor of a Form before handle creation and the Form is shown using showDialog, WinNT/SP3 or Win98 will lock up completely, requiring you to reboot the system.
RESOLUTION
You could work around the problem in the following ways:
- Instead of using ShowDialog() use show() in the commented out code in the sample given below.
- Add an onCreateHandle() event to the Form and call Cursor.setPosition() in the createhandle event code as shown in the commented out code below.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
REFERENCES
For support information about Visual J++ and the SDK for Java, visit the following Microsoft Web site:
Modification Type: | Major | Last Reviewed: | 6/14/2006 |
---|
Keywords: | kbBug kbfix kbVS600sp3fix KB223341 |
---|
|