Subject: Re- [Mac] memory
From: Kirk Keller kirk_keller@esciqm.es.llnl.gov
Date: 6 Oct 93 10:44:45 U



Subject: Time:10:32 AM
OFFICE MEMO Re: [Mac] memory Date:10/6/93
>I need to write data to memory directly. Can someone tell me which area of
>memory is safe for use?

My understanding of the mac memory manager is as follows....I am
assuming that you want to use the Low-Level Functions described in
the User Manual 2.2.x, chapter 16. If you want to allocate a memory
buffer use the "Size Handle" VI and don't wire a handle input to it. This
VI will allocate a handle to a relocatable block of memory in LabVIEW's
heap. Since this block is in LabVIEW's heap and it was created by the
memory manager you should be safe in using it with subsequent calls to
the "Handle Peek" and "Handle Poke" VI's. One interesting omission that
I see in these VI's is a "DisposeHandle" VI, I guess that the garbage
collection routine in LabVIEW takes care of this once you have no more
references to your previously allocated handle???? Anyway, I hope that
this has been of some minuscule help.

Kirk Keller
Lawrence Livermore National Laboratory
keller4@llnl.gov