Paavo Helde
2008-12-19 19:18:35 UTC
I have a problem which seems to be related to CHtmlView class. Basically
the GUI of my MFC-based application gets frozen in a certain situation.
From debugger I can see that the main message pump sits in the handler of
message 0x8002, for a CHtmlView-derived window, wParam=0, lParam=0. It
seems to do something, but it never returns.
The CHtmlView window is about to display a new page in this moment. The
page contains some Javascript which loads additional images into the page.
Fot this is contacts the HTTP server in the same process (another thread),
which prepares the image. In the error situation this thread attempts to
contact the main GUI thread, by posting an event to a queue and waiting for
the response. As the GUI is busy with the 0x8002 message, it waits forever,
thus the response is never returned to Javascript.
So my question is, what is this 0x8002 message? Why is it stalled by a non-
returning JavaScript connection, and what I could do to resolve the
situation?
Thanks in advance!
Paavo
the GUI of my MFC-based application gets frozen in a certain situation.
From debugger I can see that the main message pump sits in the handler of
message 0x8002, for a CHtmlView-derived window, wParam=0, lParam=0. It
seems to do something, but it never returns.
The CHtmlView window is about to display a new page in this moment. The
page contains some Javascript which loads additional images into the page.
Fot this is contacts the HTTP server in the same process (another thread),
which prepares the image. In the error situation this thread attempts to
contact the main GUI thread, by posting an event to a queue and waiting for
the response. As the GUI is busy with the 0x8002 message, it waits forever,
thus the response is never returned to Javascript.
So my question is, what is this 0x8002 message? Why is it stalled by a non-
returning JavaScript connection, and what I could do to resolve the
situation?
Thanks in advance!
Paavo