swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation faults when overriding objects drop


From: Ken Cline
Subject: Re: Segmentation faults when overriding objects drop
Date: Fri, 4 Jun 1999 19:10:24 -0400 (EDT)

On Sat, 5 Jun 1999, Konrad Lang wrote:

> This is taken from the Breeder-1.4.1 library.
> I integrated the library into my swarm and the
> segmentation faults occured when more then 100 models with
> different Chromosomes had run.  After replacing this by a
> function that explicitly frees the memory and does not
> touch the original drop everything seems ok.
> 
> // New free function - overriding of drop causes segmentation faults
> -free {
>    free( genotype );
>    [super drop];
>    return nil;
> }

It looks like (but I can't be sure, of course) that you are
not using the Zone mechanisms to allocate/deallocate the
memory referenced by `genotype'.  I'm not sure if this could
explain the seg fault but its worth a shot.

Ken.

_________________________________________________________
Ken Cline                             address@hidden
SAIC                                 VOICE (410) 571-0413
Annapolis, MD                          FAX (301) 261-8427



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]