Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > Re: problem wit...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5686 of 5741
Post > Topic >>

Re: problem with builtin restore

by Reimar Bauer <R.Bauer@[EMAIL PROTECTED] > Apr 28, 2008 at 11:28 AM

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.


IDL> data1=make_array(100,306,21)
IDL> data2=make_array(100,306,21)
IDL> data3=make_array(100,306,21)
IDL> data4=make_array(100,306,21)
IDL> save,file='test.sav',data1,data2,data3,data4
IDL> save,file='test1.sav',data1,data2,data3,data4
IDL> save,file='test2.sav',data1,data2,data3,data4
IDL> .reset

IDL> help,/mem & restore,file='test.sav' & help,/mem
heap memory used:     827805, max:   11109933, gets:     2506, frees:
~  1953
heap memory used:   11109981, max:   11114318, gets:     2511, frees:
~  1954
IDL> help,/mem & restore,file='test.sav' & help,/mem
heap memory used:   11110070, max:   11110215, gets:     2519, frees:
~  1961
heap memory used:   11110070, max:   13684951, gets:     2524, frees:
~  1966

and change the input filename if you think there is no change in memory
by repeating the command

It happens on 7.0.1 too.

cheers
Reimar




 3 Posts in Topic:
problem with builtin restore
Reimar Bauer <R.Bauer@  2008-04-28 10:48:02 
Re: problem with builtin restore
Reimar Bauer <R.Bauer@  2008-04-28 11:28:16 
Re: problem with builtin restore
Craig Markwardt <craig  2008-04-28 11:52:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 7:17:49 CDT 2008.