> I believe I am having a few memory leaks.. when an integer is called, say
> 'int hp' or whatever, gdb shows the value of hp to be some preposterous
> number you couldn't enter on most hand calculators.  Granted the integer
is
> redefined before it's used, but I doubt I'm crazy to assume it should be
0,
> by default?  This may be the reason my mud is crashing without any
> explicable reason when I list skills or spells, when I haven't changed
much
> anything since they worked fine.

Not really.. variables start off filled with 'junk'.... generally whatever
was in that memory before you allocated it.  (unless it's a static variable)
Unless this is happening after you've assigned a value to that variable, I
don't think it's a sign of trouble.
--Palrich.



Reply via email to