swarm-support
[Top][All Lists]
Advanced

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

Re: Help: Drop objects


From: Chimera
Subject: Re: Help: Drop objects
Date: Sat, 08 Aug 1998 05:36:38 -0700

CL,
 

   I saw that your ws object has a "build objects" procedure.  Do you allocate memory in any form in this procedure.  I don't believe that dropping "ws" if it allocated additional memory will free that memory.  ( If I'm wrong, Marcus or someone let me know.)  Check especially for files that you open that might not have an fclose associated with them or indexes (for lists) that are created but not dropped.  The index one has been the cause of quite a few swarm "memory leaks."  Just some thoughts given that you seem to be running out of places to look for possible errors.

Best of luck tracking it down, you have my empathy!

Cheers,

   D3

Christian Langer wrote:

 Marcus G. Daniels wrote:
>>>>> "CL" == Christian Langer <address@hidden> writes:

CL> I isolated my problem with dropping objects in the source code below.

Try this:

$ cd $SWARMSRCDIR/src/defobj
$ patch < the-file-below
$ cd $SWARMBUILDDIR/src/defobj
$ make install

(then re-link your application)

diff -c -r1.11 Zone.m
*** Zone.m      1998/06/25 05:32:06     1.11
--- Zone.m      1998/08/07 22:17:06
***************
*** 427,432 ****
--- 427,433 ----
        [index prev];
        mapAlloc (mapalloc, member);
      }
+   [index drop];

    // map components of the zone itself

 Thanks for your help. I tried it out, but the bug still exists.  The app runs and I can watch the used memory  growing.  When no resources are left the application aborts.
 

cl
 

-- 
_____________________________________________________________________

_/       _/ _/  _/ _/  _/ Dipl. Inform. Christian Langer
_/      _/ _/  _/ _/  _/  WHU Otto Beisheim Graduate School of Management
_/     _/ _/  _/ _/  _/   RWE Chair for Controlling and Logistics
_/    _/ _/_/_/ _/  _/    Burgplatz 2, D-56179 Vallendar, Germany
_/ _/_/ _/  _/ _/  _/     Tel. +49 261 6509-275  Fax: -188
_/_/_/ _/  _/ _/  _/      email: address@hidden
_/ _/ _/  _/  _/_/        homepage: http://www.whu-koblenz.de/control
_____________________________________________________________________
 
 

--
*********************************************************************
* Doug Donalson                 Office: (805) 893-2962
* Ecology, Evolution,           Home:   (805) 961-4447
* and Marine Biology            email address@hidden
* UC Santa Barbara
* Santa Barbara Ca. 93106
*********************************************************************
*
*   The most exciting phrase to hear in science, the one that
*   heralds new discoveries, is not "EUREKA" (I have found it) but
*   "That's funny ...?"
*
*       Isaac Asimov
*
*********************************************************************
 


reply via email to

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