BUG: Protection Fault with Reserved System WNDCLASS Names (195527)
The information in this article applies to:
- Microsoft Visual J++ 6.0
- Microsoft SDK for Java 3.1
- Microsoft SDK for Java 3.2
This article was previously published under Q195527 SYMPTOMS
When sub-classing a pre-defined Win32 Window class by calling
CreateHandle(CreateParams) in Windows Foundation Classes (WFC), certain
reserved system Window classes may cause one of the following error
messages. This occurs if the param field of CreateParams is not set
correctly or the WM_CREATE message is not passed on to defWndProc or if
other particulars are not met that are similarly required when sub-classing
pre-defined system window classes in traditional windows programming:
Access violation, General Protection Fault, or java.lang.UnknownError:
Exception 0xc0000005 occurred in native code at 0x77e83564
RESOLUTION
Rather than sub-classing in this manner, extend the WFC Java class that
corresponds to the reserved system Window class that you want to sub-class.
Or, be sure that the required windows protocols are followed when sub-
classing with createHandle(), such as passing WM_CREATE on to defWndProc or
setting the CreateParam.param member to either null or to refer to an
instance of the required STRUCT declared with the @dll.struct compiler
directive as described in the WFC createHandle() documentation.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. REFERENCES
For additional information about getting an Unhandled Exception when using a system classname such as LISTBOX, please see the following article in the Microsoft Knowledge Base: 195160 PRB: Wjview.exe Causes Unhandled Exception on Handle Creation
Modification Type: | Minor | Last Reviewed: | 3/7/2005 |
---|
Keywords: | kbBug kbpending kbui kbWFC KB195527 kbAudDeveloper |
---|
|