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

Home » Public Forums » archive » Problems with 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
Re: Problems with Restore [message #47988 is a reply to message #47868] Thu, 09 March 2006 01:11 Go to previous messageGo to previous message
Antonio Santiago is currently offline  Antonio Santiago
Messages: 201
Registered: February 2004
Senior Member
Hello, other time. I think here is the final response to the problem:

The problem is in the SAVE and RESTORE methods:

(at method Save)
"save, self, FILENAME=filename"

saves the a variable with name 'self'

(at method restore)
"restore, fileName, RESTORED_OBJECTS = temp"

restores the 'self' named variable and also stores references of object
into the 'temp' array.
Here is the problem. Your 'self' object reference is replaced by the
previous 'self' variable stored with the save method.

At 'save' method change this:
PRO OperatorLanguageMapping::Save, fileName
a=self
save, a, FILENAME=fileName
END

Now when you make the restore, you are restoreing a named variable 'a'
that doesn't replace the 'self' reference.

Bye.


--
-----------------------------------------------------
Antonio Santiago P�rez
( email: santiago<<at>>grahi.upc.edu )
( www: http://www.grahi.upc.edu/santiago )
( www: http://asantiago.blogsite.org )
-----------------------------------------------------
GRAHI - Grup de Recerca Aplicada en Hidrometeorologia
Universitat Polit�cnica de Catalunya
-----------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: matching 2 grids
Next Topic: Re: Name Space Conflicts

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

Current Time: Sat Oct 11 14:09:46 PDT 2025

Total time taken to generate the page: 3.11938 seconds