Mark, Thanks a million for the help. That sounds like a good route.
I'm sorry, I'm not razvan252. Have a great weekend! Steve On Thu, May 1, 2008 at 10:51 PM, Mark Chandler <[EMAIL PROTECTED]> wrote: > Are you razvan252 from the forums by any chance? > > > You really shouldn't be reloading multi res files on the same panel. What > you should have instead is multi panels (each with one res file) and then > you swap between those. For example the option menu uses this system. Look > at PropertyPage in the vgui_controls solution because this will allow you > to > do what you want very easy. > > > If you need some example code email me. > > Mark > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Steve > Henderson > Sent: Friday, May 02, 2008 2:54 AM > To: Discussion of Half-Life Programming > Subject: [hlcoders] Trouble with VGUI LoadControlSettings > > Hey Folks, > > I have a custom VGUI class that I am trying to dynamical load with the > following command: > > LoadControlSettings("Resource/UI/myfile.res"); > > I change the value of myfile.res several times in my MOD based on certain > state variables.. > > It works fine the first few times I use it with various files. > > But, when I try to reload a file I successfully used in a previous state > of > the game (e.g. returning to a certain game state)...I get an unhandled > exception call and the MOD crashes. > > I traced the crash point to KeyValues::RecursivelyLoadFromBuffer..I can > see > it loading the res file, values and key names, and then it crashes > somewhere > between > fetching the KeyValue name and the value. And it doesn't fail in the same > line of the res file, so it doesn't seem to be a parsing error. > > Keep in mind, the res it chokes on was successfully loaded a previous > time, > so I'm pretty sure the .res is OK.. > > Has anyone else had similar experiences? Am I blowing up the KeyValues > stack? > > Here is the code and res: > > http://digitalblacksmith.com/wiki/index.php/KeyValuesResProblems > > Thanks, > > Steve > _______________________________________________ > 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

