It seems we found what is causing the exception in our code.
WorldReset() resets the level we commented out that function and we no
longer get the exception.
However looking at the filters and such everything looks fine..
Here is what we are filtering if we missed something please let me know.
filter.AddKeep("worldspawn");
filter.AddKeep("soundent");
filter.AddKeep("hl2mp_gamerules");
filter.AddKeep("scene_manager");
filter.AddKeep("predicted_viewmodel");
filter.AddKeep("team_manager");
filter.AddKeep("event_queue_saveload_proxy");
filter.AddKeep("player_manager");
filter.AddKeep("player");
filter.AddKeep("info_player_deathmatch");
filter.AddKeep("info_player_rebel");
filter.AddKeep("info_player_combine");
filter.AddKeep("info_player_start");
filter.AddKeep("ai_network");
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "r00t 3:16" <[EMAIL PROTECTED]>
To: <hlcoders@list.valvesoftware.com>
Sent: Thursday, March 31, 2005 7:00 PM
Subject: Re: [hlcoders] RemoveAllPanels() causing read memory error
oops sorry did a search on the wrong thing...
I did another one on DeletePanel in the entire solution and there are 4
places it found
\src\cl_dll\game_controls\vgui_TeamFortressViewport.cpp(346):
vgui::ipanel()->DeletePanel( vPanel );
\src\public\vgui\IClientPanel.h(77): virtual void DeletePanel() = 0;
\src\public\vgui\IPanel.h(76): virtual void DeletePanel(VPANEL vguiPanel)
=
0;
\src\public\vgui_controls\Panel.h(167): virtual void DeletePanel(); //
simply does a { delete this; }
r00t 3:16
CQC Gaming
www.cqc-gaming.com
----- Original Message -----
From: "Alfred Reynolds" <[EMAIL PROTECTED]>
To: <hlcoders@list.valvesoftware.com>
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: hlcoders@list.valvesoftware.com
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
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders