Oasis Medit's Problems

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 09/29/97

Ok, i went back through some of my old C books,
and i found the Information on the Memory Allocation Routines.

well, i went back looking through medit.c in the
medit_save_internally() part,
and i got to wondering.
instead of just FREEing the old memory,
why not REALLOC it to the new size, thereby
saving the free(mob_index); trouble?

My assumption is that (In Theory) it SHOULD work.
If i'm wrong, please explain to me why.

my question on this, though, is :
  Has anyone tried this, and KNOW if it works or not?
because i STILL get crashes on the Mob_index freeing part,
and i can't seem to figure out why (i have a few ideas, but i need sleep).

anyway, if anyone has any ideas/answers to this question,
please feel free to mail the list :-)

thanks for your time.

Code On
Akuma the Raging Coder

  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |

     | 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/08/00 PST