Having some issues with PostMessage(). Application crashes with complaint
about calling a pure virtual function; I think it's localized to the message
system because (1) the crash does not occur when the PostMessage(...) call is
commented, and (2) a breakpoint set on the recipient function never
@list.valvesoftware.com Subject: [hlcoders] PostMessage()
Having some issues with PostMessage(). Application crashes with
complaint about calling a pure virtual function; I think it's
localized to the message system because (1) the crash does not occur
when the PostMessage(...) call is commented, and (2
Thanks for the reply. I've found the solution on my own.
sizeof( m_szPanelNames ) will be 4 (it's the size of a char * pointer),
not 1. Try the ARRAY_SIZE() macro instead :)
- Alfred
Yeah, I wrote a countof macro to fix this. I'll use ARRAY_SIZE() then. :)
The real problem, though, was
Evidently, the VGUI2 system has problems handing messages posted by a panel
to itself.
mail2web - Check your email from the web at
http://mail2web.com/ .
___
To unsubscribe, edit
Subject: [hlcoders] PostMessage() Bug
Evidently, the VGUI2 system has problems handing messages posted by a
panel to itself.
mail2web - Check your email from the web at http://mail2web.com
Alfred Reynolds wrote:
No it doesn't, just grep the vgui2/controls directory for lots of
examples of exactly this happening.
Perhaps a message is being posted which causes infinite recursion? :)
--
Jeffrey botman Broome
___
To unsubscribe, edit
Funky. Could be on my end.
Code is such:
KeyValues *msg = new KeyValues( MapIconUnblink );
msg-SetInt( data, index );
PostMessage( GetVPanel(), msg, UNBLINK_DELAY ); // UNBLINK_DELAY = 10.0f
The header file has such, defined private:
MESSAGE_FUNC_INT( OnUnblinkIcon, MapIconUnblink, index );
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, June 27, 2005 2:35 PM
To: hlcoders@list.valvesoftware.com
Subject: RE: [hlcoders] PostMessage() Bug
Funky. Could be on my end.
Code is such:
KeyValues *msg = new KeyValues( MapIconUnblink
8 matches
Mail list logo