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