RE: [hlcoders] RemoveAllPanels() causing read memory error
I and a few others had this exact same issue, I figured out that in reality it has nothing to do with removeallpanels and actually it's your debugging method! do NOT attach the debugger to the process, instead use the alternate method of launching it with the debugger, see ibutsu's method 1 http://articles.thewavelength.net/650/ when you go to launch it, it will tell you that hl2 does not contain any debugging information, thats fine because the dll is what will be crashing not the exe (so just click ok) When your game crashes out to the debugger it should show you the correct line causing the crash Hope this helps, I was stuck on this for a great many days _ Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new MSN Search! Check it out! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
RE: [hlcoders] RemoveAllPanels() causing read memory error
w00t ta --- Maurino Berry [EMAIL PROTECTED] wrote: I and a few others had this exact same issue, I figured out that in reality it has nothing to do with removeallpanels and actually it's your debugging method! do NOT attach the debugger to the process, instead use the alternate method of launching it with the debugger, see ibutsu's method 1 http://articles.thewavelength.net/650/ when you go to launch it, it will tell you that hl2 does not contain any debugging information, thats fine because the dll is what will be crashing not the exe (so just click ok) When your game crashes out to the debugger it should show you the correct line causing the crash Hope this helps, I was stuck on this for a great many days _ Don't just Search. Find! http://search.sympatico.msn.ca/default.aspx The new MSN Search! Check it out! ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders http://ammahls.com __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
Re: [hlcoders] RemoveAllPanels() causing read memory error
Indeed we were. :( On Apr 1, 2005 7:56 PM, Maurino Berry [EMAIL PROTECTED] wrote: I and a few others had this exact same issue, I figured out that in reality it has nothing to do with removeallpanels and actually it's your debugging method! do NOT attach the debugger to the process, instead use the alternate method of launching it with the debugger, see ibutsu's method 1 http://articles.thewavelength.net/650/ when you go to launch it, it will tell you that hl2 does not contain any debugging information, thats fine because the dll is what will be crashing not the exe (so just click ok) When your game crashes out to the debugger it should show you the correct line causing the crash Hope this helps, I was stuck on this for a great many days ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
[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
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
Re: [hlcoders] RemoveAllPanels() causing read memory error
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: 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
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
Re: [hlcoders] RemoveAllPanels() causing read memory error
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