comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Different behavior of RESTORE and IDL_SaveFile::Restore ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Different behavior of RESTORE and IDL_SaveFile::Restore ? [message #90251] Sat, 14 February 2015 11:13 Go to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
In a previous IDL session, I built three long LIST() variables made of various arrays and structures (no objects). I then save them, by the usual command:
IDL> save, list1, list2, list3

Problem arises when I want to restore the lists by using:
IDL> restore, 'idlsave.dat'
Actually, IDL crashes immediately. Likely, I made some error in the creation program.

The strange thing is that I can restore my variables by using the IDL_SaveFile object, i.e:

IDL> s = Obj_New('IDL_SaveFile', 'idlsave.dat')
IDL> s.Names()
LIST1
LIST2
LIST3
IDL> s.Restore, 'LIST1'
IDL> s.restore, 'LIST2'
IDL> s.Restore, 'LIST3'
IDL> help, list1, list2, list3
LIST1 LIST <ID=2 NELEMENTS=11916>
LIST2 LIST <ID=23835 NELEMENTS=154366>
LIST3 LIST <ID=332568 NELEMENTS=166282>

Any clue ?
What kind of error might make a successful saveset crashing IDL ?

alx.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bridge Logging = OFF not working using the Java Bridge
Next Topic: recursive search in a dictionary

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:01 PDT 2025

Total time taken to generate the page: 0.00224 seconds