Re: Problems with Restore [message #47863] |
Wed, 08 March 2006 12:50 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
vcarlos writes:
> Well, I've copied the Clone function to my object, and guess what: it
> worked!!! :D
>
> I don't know why, but it did, so, let it be :)
Yes, this has been my experience, too. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Problems with Restore [message #47865 is a reply to message #47863] |
Wed, 08 March 2006 12:36  |
vcarlos
Messages: 21 Registered: February 2006
|
Junior Member |
|
|
Hi David,
Well, I've copied the Clone function to my object, and guess what: it
worked!!! :D
I don't know why, but it did, so, let it be :)
Thanks a lot
Vinicius
|
|
|
Re: Problems with Restore [message #47867 is a reply to message #47865] |
Wed, 08 March 2006 11:53  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
vcarlos writes:
> I am writing a class that I want add save and restore features to it.
I can't explain exactly *why* you are getting the results
you are, but I do know there are problems with saving and
restoring objects. It's one of those things that you either
solve, without understanding why, or you give up and figure
out another technique for doing what you want to do.
I suspect you might have better luck with cloning the object
before you save it:
http://www.dfanning.com/tips/copy_objects.html
At the very least, it will give you something more to
think about while you are scratching your head over this. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|