Re: NEWBIE: New Players Crash on Quit

From: Ernest DeVore (edevore@austin.rr.com)
Date: 08/09/01


I isolated the problem down to comm.c within void close_socket. It's the
following line:

free_char(d->character);

I comment this out, the game closes out the player just fine and no
crash. Weird. I examined the free_char routine and it (according to
comments) just frees up memory allocated to the player. So this prompts
me to come to you with a few more questions.

A) I haven't modified free_char at all (it is as virgin as it exists in
stock db.c files.) Any ideas what could be causing this new memory
error?

B) If I just leave it removed, it's a memory leak. How many players can
we go through before it starts to bog down the machine? I'm thinking
lots.

C) Does anyone have any better ideas on how to free up that memory?

Thanks.
Ernest DeVore

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST