No I am not calling any delete panel anywhere in my code.
To be honest I haven't even messed with any panels yet. Which is why I am bringing up player->ShowViewPortPanel( PANEL_SCOREBOARD ) This will be changed later to an INTERMISSION panel later but, we were using the scoreboard for now.
I also did a find in entire solution and RemoveAllPanels is only located in 4 places which are all in vgui_teamfortressviewport.cpp / .h
r00t 3:16 CQC Gaming www.cqc-gaming.com
----- Original Message ----- From: "Alfred Reynolds" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Thursday, March 31, 2005 6:32 PM Subject: RE: [hlcoders] RemoveAllPanels() causing read memory error
Are you ever directly doing "delete panel" on a panel (because you shouldn't, that will causes this crash). To delete a panel always call MarkForDeletion() on it (it will then be deleted once all references to it are freed).
- Alfred
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of r00t 3:16 Sent: Thursday, March 31, 2005 3:29 PM To: [email protected] Subject: [hlcoders] RemoveAllPanels() causing read memory error
In the mod I am working on we have round based maps.
When 0 players is reached on 1 of the teams the round is over. Or if only 1 player is playing and dies the round is over...
I keep getting a read memory error, in certain situations. Doing a trace RemoveAllPanels(); is causing this.
For example if a blow myself up with a barrel. The roundend() resets the world and then calls the function IntermissionStart() which freezes the player etc and also displays a panel player->ShowViewPortPanel( PANEL_SCOREBOARD ) I would imagine this is what is causing the problem. However if the round time finishes everything works ok. If i type kill in the console it works also with no memory read errors.
Only time I get the read error is when someone else or something kills me. Kind of stumped as to why this would happen..
Here is the error "The instruction at "0x245d06d5" referenced memory at "0x00cb11cc" The memory could not be "read"
Tracing goes to here
in vgui_teamfortressviewport.cpp line 346 vgui::ipanel()->DeletePanel( vPanel );
Any idea as to why this would happen?
r00t 3:16 CQC Gaming www.cqc-gaming.com
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

