C
Chris Karcher
My application does some dynamic control generation and I can see
(using OpenNETCF's IMessageFilter) that sometimes, after creating the
controls, a WM_DESTROY message will get posted to my application.
This message gets dispatched by ApplicationEx via DispatchMessage()
and will then sometimes dispose a control, later causing an
ObjectDisposedException when trying to interact with that control.
My Question: Why the heck would a WM_DESTROY message get posted to my
message queue?
I thought it might be due to a low memory situation, the OS trying to
tell my application it needs to quit. However, there was almost 2MB
of free memory on the device the last time I received this message.
The application is creating and manipulating all standard .NET
controls (e.g. textboxes, labels), with the exception of the
OpenNETCF's HTMLViewer from v1.1 of the framework. What's interesting
is that about half the time, the Hwnd value in the WM_DESTROY message
will be the value of the m_control handle of the ControlMessageWindow
object wrapped by HTMLViewer.
I really have no idea what's going on here.
(using OpenNETCF's IMessageFilter) that sometimes, after creating the
controls, a WM_DESTROY message will get posted to my application.
This message gets dispatched by ApplicationEx via DispatchMessage()
and will then sometimes dispose a control, later causing an
ObjectDisposedException when trying to interact with that control.
My Question: Why the heck would a WM_DESTROY message get posted to my
message queue?
I thought it might be due to a low memory situation, the OS trying to
tell my application it needs to quit. However, there was almost 2MB
of free memory on the device the last time I received this message.
The application is creating and manipulating all standard .NET
controls (e.g. textboxes, labels), with the exception of the
OpenNETCF's HTMLViewer from v1.1 of the framework. What's interesting
is that about half the time, the Hwnd value in the WM_DESTROY message
will be the value of the m_control handle of the ControlMessageWindow
object wrapped by HTMLViewer.
I really have no idea what's going on here.