Re: coding problem with a character creation addition (mem leak?)

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 09/16/97


On Tue, 16 Sep 1997, George wrote:

-+On Tue, 16 Sep 1997, Sorren@usa.net wrote:
-+
-+>A bool is defined as a byte, its a small change, that will not cause the
-+>memory leak.  While I agree I usually use bool for true or false 1 or 0.
-+>I overlooked it, and its trivial to change.  But, how could that cause a
-+>memory leak, which is my concern, or how could it cause my mud to crash
-+>periodically ?
-+
-+I wasn't trying to point out any memory related things, just that you
-+should not try to put '2' in a 'bool' variable.

Especially in C++, where 'bool' really is a type. :)

-+Periodic crashes occur for many reasons, sometimes very unrelated. :)

The best thing to do is to use your debugger whenever the mud crashes.
Sure, it'll take some time, but there's no magical one-way-to-fix-all
cure for problems that can be as wide ranging and boggling as they
are in coding...:)


--
Daniel Koepke -:- dkoepke@california.com -:-  [Shadowlord/Nether]
Think.


     +------------------------------------------------------------+
     | 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