Re: Attribute BASED and LINKAGE SECTION



I can only imagine that the based item would be assigned to the new storage,
and the old storage would be orphaned unless pointed to by another based
item or a data pointer. I just can't imagine that the data should be
automatically freed (unless one traces through every other data item to make
sure its not being referred to elsewhere). I just don't see any useful
middle ground between totally manual (programmatic) de-allocation and pretty
much full-blown garbage collection.

Frank

---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO USA

Roger While<simrw@xxxxxxxxxxxx> 06/29/06 7:00 AM >>>
Which still does not answer the question of whether
the memory acquired by an ALLOCATE for a
BASED LINKAGE/LOCAL item is automatically reaped.
(Taking into account possibly STICKY-LINKAGE).

And what (should) happen(s) when a BASED item is
subject to more than one ALLOCATE without an intervening FREE ?

.



Relevant Pages

  • Re: *** glibc detected *** ./test: realloc(): invalid old size: 0x00007fff49779070 ***
    ... program design rather than C, ... Operation: Allocate a new Page, ... a pointer to a Page, ... may need to "grow" the page if line storage has overflowed ...
    (comp.lang.c)
  • Re: how to find number of bytes freed
    ... When you allocate this storage, you know how much storage you allocated. ... so also a link between a pointer ... write my own memory allocator. ...
    (comp.lang.c)
  • Re: Threading problem
    ... Your analysis about the storage being freed is the ... but if this is a pointer to free storage on the ... now you can set it up so that it disables all controls (e.g., ... LRESULT CMyForm::OnThreadDone ...
    (microsoft.public.vc.mfc)
  • Re: [LogoForum] Re: Objects
    ... Imagine we modify a value of one of the properties of A. This should ... This is easy, but slow solution. ... when you assign object you just set the pointer. ... This should be fast and then it's up to the user to call DEEPCOPY, ...
    (comp.lang.logo)
  • Re: Design question
    ... > call this class Storage. ... > will call DisplayPanel) with several JTextFields, JComboBoxes, JPanel's ... > like a pointer would be really useful here, so that I could just pass ... for all object parameters. ...
    (comp.lang.java.programmer)