> Hi, I have found out that my mud is hanging on this line:
> char skill_list[LEVEL_HERO][MAX_STRING_LENGTH];

How, pray tell, did you find out the exact line the mud's hanging on? GDB's
good, but as far as I know it's not that good.. A backtrace will get you
into the general area of where your mud went bad, but still.

> LEVEL_HERO is 206 and so I would guess I'm running out of memory or
> something.  Is there another way I can do my skills and spells command
> so that it won't run out of memory and hang?  Thank you.

What do levels have to do with memory? Umm, not much at all, in fact I'd say
next to nothing.. I've increased ML quite a bit more than 206 and I get no
extra memory usage, etc... So, please, do elaborate as to how you got to
this conclusion, because 10:1 it's wrong.

Now, as for your problem..  Go back and restore backups from whatever
changes you made (you DO make backups right??). If they're not available, go
through whatever changes you made in the mud and make SURE you know what
you're doing with them, make SURE they're all done 100% correctly.

The problem probably is NOT in skill_list (unless you've modified it rather
heavily), rather in some other function that you've modified recently. This
is why I said go through the backups of your code and verify that everything
that you've modified was done right and correctly..

--
 ---------------------------------------------------------------------------
-------
 Common sense is great, but only to those who use it.
 ---------------------------------------------------------------------------
-------

 TJW, head tech, Dreamless Realms mud.
 mud: telnet://drealms.kyndig.com:9275
 web: http://drealms.kyndig.com
 code snippets: http://drealms.kyndig.com/snippets




Reply via email to