Re: [CODE] Crashing

From: Matt Knecht (hex@VOICENET.COM)
Date: 04/01/98


On Tue, 31 Mar 1998, peter hartman wrote:

>ACMD(do_players)
[lotsa code snipped]
>{
>  FILE *fl;
>  if (!(fl = fopen(PLAYER_FILE, "r+")))
>}

You may want to close this file after you're done with it.  In fact,
you may want to look at ALL The code you've written and make sure
you're closing your files.  This sort of coding mistake is a Bad Thing(tm).

--
Hextall, an Implementor of Exile  *    888`98  9b.dP  888  888     888`98
exile.linex.com 4000              *    888+8,   d8b   888  888  ,  888+8,
The mud you've been looking for   *    888,d8  d8 9b  888  888,d8  888,d8


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST