Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

application crash on DispatchMessage !

140 views
Skip to first unread message

Greg2fs

unread,
Dec 29, 2009, 10:13:54 AM12/29/09
to
Hello, I am developping a 3d game using directx 9 and I have it
randomly crashing on the DispatchMessage instruction, I tried to put a
"try { DispatchMessage( &msg ); } catch(char* err) { Log(err); }" but
it doesn't catch anything.
I looked everywhere but don't find any reason , can someone help me ?

Thanks

patrick

unread,
Dec 29, 2009, 11:57:08 AM12/29/09
to

It's impossible to guess without code.
DispatchMessage() sends messages to the WndProc, then you should put
some BP inside your WndProc and debug it step by step..

Greg2fs

unread,
Dec 29, 2009, 3:56:33 PM12/29/09
to
I already checked teh proc but it's DispatchMessage witch crash
because the lastest log I get is just before DispatchMessage...

Greg2fs

unread,
Dec 30, 2009, 7:13:50 AM12/30/09
to
I checked the msg.message given to dispatchmessage and I saw it was to
1125 on crash, then I skip 1125 message and it seems not to crash no
more. What is this message ?

Christian ASTOR

unread,
Dec 30, 2009, 7:26:32 AM12/30/09
to

1125 is a custom message (WM_USER + 101)
http://msdn.microsoft.com/en-us/library/ms644931(VS.85).aspx

0 new messages