The information in this article applies to:
SYMPTOMSWhen creating more than two Multiple Document Interface (MDI) child windows in the constructor of the parent window, a WFCException is thrown with a message that an error has occurred creating a window handle. CAUSEThis problem is related to the time at which the Win32 window handles are created, which may not be the same time the child window objects are created in Java code. RESOLUTIONTo work around this problem, limit the number of child windows created in the constructor of the parent to two, and/or create child windows after the parent has been constructed. A third option is to use Control.invokeAsync() as illustrated in the commented code in the sample below. STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why MORE INFORMATIONIn WFC, handle creation for children of an MDI parent is deferred until the parent Form is made visible. Steps to Reproduce BehaviorCompile and run the following code using an install of Visual Studio 6.0 that has not had Service Pack 3 applied:
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ Additional query words:
Keywords : kbservicepack kbCtrlCreate kbSDKJava kbVJ600bug kbWFC kbGrpJava kbVS600sp2 kbVS600SP1 kbVS600sp3fix |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |