by Craig Markwardt <craigmnet@[EMAIL PROTECTED]
>
Apr 28, 2008 at 11:52 AM
Reimar Bauer <R.Bauer@[EMAIL PROTECTED]
> writes:
> Reimar Bauer schrieb:
> > Hi
> > we found a bug in restore of idl6.4 today. (linux version)
> > if you restore lots of files with always the same vars stored we
> > would
> > suppose that the memory allocation is always only done from the last
> > restore you did.
> > It looks like that you can overwrite the vars without reallocating
> > the
> > memory.
> > The cmrestore by CraigMarkwardt does it right.
> > cheers
> > Reimar Bauer
>
> hmm I'm currently not sure if craigs routine does allocate different.
Reimar, CMSAVE/CMRESTORE just use standard IDL variables, so the
allocation should be the same as IDL's standard
allocation/deallocation. This is not quite true if you use pointers
within your saved data, but this does not apply to your example.
Craig