Re: memory management



Unless the access type goes out of scope in which case the memory is
automatically recovered (memory pools and all).

Steve
(The Duck)

"David C. Hoos, Sr." <david.c.hoos.sr@xxxxxxxxx> wrote in message
news:mailman.131.1117073739.24457.comp.lang.ada@xxxxxxxxxxxxxxxxx
> There is no automatic deallocation of memory when an
> access object goes out of scope, unless the
> designated object is a controlled type.
>
> ----- Original Message -----
> From: "alex goldman" <hello@xxxxxxxx>
> Newsgroups: comp.lang.ada
> To: <comp.lang.ada@xxxxxxxxxxxxxx>
> Sent: May 25, 2005 7:57 PM
> Subject: memory management
>
>
>> As I understood from reading the Ada tutorial for C/C++ programmers,
>> "access" is essentially like C++ smart pointer, except that you don't
>> need
>> to do anything to dereference it.
>>
>> How will the following work:
>>
>> Record A contains "access" to record B; record B contains "access" to
>> record A.
>>
>> If I create an instance of one of them with "new", will it be destroyed
>> when
>> "access" to it goes out of scope?
>>
>> _______________________________________________
>> comp.lang.ada mailing list
>> comp.lang.ada@xxxxxxxxxxxxxx
>> http://www.ada-france.org/mailman/listinfo/comp.lang.ada
>>

.



Relevant Pages

  • Re: VISTA RAM QUESTION
    ... Page 7 shows how to install the memory. ... But then I need to finish up mounting the scope mount for the scope on ... I just did a drive install when I had a windows system so badly screwed up nothing could fix it. ...
    (misc.news.internet.discuss)
  • Re: Oscilloscope dealers in the US
    ... Agilent DSO3202, pretty nice features but only 4k memory. ... Obviously favors Tek, but they do some live demos with the DSO3000's that ... The Agilent 54645D and friends have several logic channels plus two scope ...
    (sci.electronics.design)
  • Re: Scope Best Practice
    ... creating a new object versus the cost of maintaining it in memory?" ... the object is ready for GC once the loop is complete ( ... even if it remains in scope because it is not being referenced anywhere ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Newbie help
    ... If you insist on using memory variables, ... you should make they all public so they remain in scope. ... and discard or write the data to the tables as ... Purchase VFP8 here: ...
    (microsoft.public.fox.vfp.forms)
  • Re: Scoping in VB.Net
    ... You may be slightly confused about scope, ... As an example of what I mean, think about memory leaks using a language ... variables are not value types (but reference types) and are declared on ... The Windows OS has a reference to it via a "Handle". ...
    (microsoft.public.dotnet.languages.vb)