comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: problems parse (large) json file with gnatcoll.json
Date: Wed, 20 Apr 2016 00:50:22 -0700 (PDT)
Date: 2016-04-20T00:50:22-07:00	[thread overview]
Message-ID: <6d7eed9d-94cd-4337-9501-6e9ebb6fc70c@googlegroups.com> (raw)
In-Reply-To: <0d653ce4-c8da-4bf8-8ef4-94693c158447@googlegroups.com>

Am Dienstag, 19. April 2016 21:48:35 UTC+2 schrieb Shark8:
> return Result : JSON_String := Content.all do
>   Free( Content ); -- "Free" is the instantiation of Unchecked_Deallocation.
> end return;
> 
> *BUT*
> 
> You really shouldn't need it, IIRC when the type String_Ptr goes out of scope all instances should become invalid, thus allowing the compiler to reclaim it's memory from the storage pool.

Attention! When an access type goes out of scope, all target objects are finalized, but the storage is only reclaimed if there is a size clause on the access type.

  reply	other threads:[~2016-04-20  7:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-18 18:21 problems parse (large) json file with gnatcoll.json Björn Lundin
2016-04-18 18:51 ` Jeffrey R. Carter
2016-04-18 19:05   ` Björn Lundin
2016-04-19 19:48     ` Shark8
2016-04-20  7:50       ` AdaMagica [this message]
2016-04-21  8:44       ` Björn Lundin
2016-04-25 10:38     ` briot.emmanuel
2016-04-25 15:12       ` Björn Lundin
2016-04-18 18:59 ` joakimds
2016-04-18 19:23   ` Björn Lundin
2016-04-19  8:17 ` Jacob Sparre Andersen
2016-04-19  9:14   ` Björn Lundin
2016-04-19  9:56 ` gautier_niouzes
2016-04-19 12:49   ` G.B.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox