Discussion:
GUI freezing in msg=0x8002
(too old to reply)
Paavo Helde
2008-12-19 19:18:35 UTC
Permalink
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
AliR (VC++ MVP)
2008-12-19 20:22:33 UTC
Permalink
0x8000 is the WM_APP range, which are generally used for application private
messages. Systems messages are below 0x0400.

AliR.
Post by Paavo Helde
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
Joseph M. Newcomer
2008-12-19 21:44:00 UTC
Permalink
From winuser.h:

#define WM_APP 0x8000

So this is an app-specific message of the class you are using. What it is, means, and
does is up to the class.
joe
Post by Paavo Helde
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
Joseph M. Newcomer [MVP]
email: ***@flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
Paavo Helde
2008-12-19 22:17:32 UTC
Permalink
This post might be inappropriate. Click to display it.
Drew
2008-12-29 22:46:30 UTC
Permalink
Does this help?

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6395737

Drew
Post by Paavo Helde
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
m***@yahoo.com
2017-08-30 19:53:41 UTC
Permalink
I PLAYZZZZ RBLOXX AND DIZ MZZAJ POPLS UPPO AND IS NOOOOTL LETTLZ MEHAAA PLAYSZX MAH ROBLOXXXXXXXXXXXXXXXXXXXXXXX
Loading...