[hlcoders] PostMessage()

2005-07-14 Thread John Sheu
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

RE: [hlcoders] PostMessage()

2005-07-14 Thread Alfred Reynolds
@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

Re: [hlcoders] PostMessage() - FIXED

2005-07-14 Thread John Sheu
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

[hlcoders] PostMessage() Bug

2005-06-27 Thread [EMAIL PROTECTED]
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

RE: [hlcoders] PostMessage() Bug

2005-06-27 Thread Alfred Reynolds
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

Re: [hlcoders] PostMessage() Bug

2005-06-27 Thread Jeffrey \botman\ Broome
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

RE: [hlcoders] PostMessage() Bug

2005-06-27 Thread [EMAIL PROTECTED]
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 );

RE: [hlcoders] PostMessage() Bug

2005-06-27 Thread Alfred Reynolds
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