Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #734

Re: ITEM API

From Robert van der Hulst <E-55525A53-4121-E@heliks.nl>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: ITEM API
Date 2011-04-07 09:27 +0200
Message-ID <8110712419.20110407092705@heliks.nl> (permalink)
References <J0Dmp.23126$Hl6.20113@newsfe23.ams2> <4d9b9019$0$11193$c30e37c6@exi-reader.telstra.net> <de5de8ff-7f05-476f-ac17-19e10c0a0a7c@32g2000vbe.googlegroups.com> <5XVmp.27893$7u3.4399@newsfe04.ams2>

Show all headers | View raw


Hi Martin,
 On Wed, 06 Apr 2011, at 08:58:41 [GMT UTC] (which was 10:58 where I live) 
you wrote about: 'ITEM API'

> Yes, we are trying to track memory usage and I was wondering when all 
> the memory used by the ItemRegister() ItemRelease() is reused.

> Does the GC get triggered while the DLL is running or only when full 
> control is handed back to the main VO executable.

If you allocate dynamic memory inside the C DLL then the GC may be triggered as
well. For example if you call ItemPutC() or ItemPutND() then a new dynamic
stringor float is allocated. This may trigger the GC.

If you want to be sure that your items containing references to dynamic memory
are updated by the GC then you need to call ItemRegister() to register each item.
Call ItemRelease() when you are done to tell the GC that you are no longer using
them.



-- 
Robert van der Hulst
AKA Mr. Data
www.heliks.nl

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ITEM API Martin <spam@spam.spam> - 2011-04-05 12:27 +0100
  Re: ITEM API "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-04-05 21:56 +0000
    Re: ITEM API "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-04-06 01:38 -0700
      Re: ITEM API Martin <spam@spam.spam> - 2011-04-06 09:58 +0100
        Re: ITEM API Robert van der Hulst <E-55525A53-4121-E@heliks.nl> - 2011-04-07 09:27 +0200
          Re: ITEM API Martin <spam@spam.spam> - 2011-04-07 10:06 +0100
            Re: ITEM API Robert van der Hulst <E-55525A53-4121-E@heliks.nl> - 2011-04-07 13:34 +0200
              Re: ITEM API Martin <spam@spam.spam> - 2011-04-07 13:07 +0100

csiph-web