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

Home » Public Forums » archive » Re: Problems with Restore
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Problems with Restore [message #47863] Wed, 08 March 2006 12:50
David Fanning is currently offline  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 Go to previous message
vcarlos is currently offline  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 Go to previous message
David Fanning is currently offline  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/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Name Space Conflicts
Next Topic: Re: read files with time column

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

Current Time: Wed Oct 08 17:37:42 PDT 2025

Total time taken to generate the page: 0.00574 seconds