Saving / Restoring Objects [message #35043] |
Fri, 09 May 2003 02:59 |
mfeldt
Messages: 4 Registered: October 2002
|
Junior Member |
|
|
Hi,
trying myself and surfing the web I find a lot of remarks how useful
it is to save and restore idl objects. However, for me it doesn't
seem to work - am I doing something wrong here? Basically what I do is
this:
IDL> a=obj_new('fancy_object')
% Compiled module: FANCY_OBJECT__DEFINE.
;;
;; this compiled my object with lots of functions etc..
;;
IDL> a-> set,'Debug',1 ; internal variable access...
;;
;; many more of those may go here
;;
;; then:
IDL> save,a,file='test.sav'
IDL> exit
;; now a new session
IDL> restore, file='test.sav'
IDL> help,a,/obj
** Object class FANCY_OBJECT, 0 direct superclasses, 0 known methods
;; i.e. the object seems to be there, but all information on it and
all methods are lost... I also tried compiling the related code first,
but no use...
Is there any way to make this work??
Thanks
M.
--
Markus Feldt Voice: +49 6221 528 262
Max-Planck-Institut Fax: +49 6221 528 246
fA�r Astronomie mailto:mfeldt@mpia.de
KA�nigstuhl 17 http://www.mfeldt.de
D-69117 Heidelberg, Germany Si, !asi es la vida!
|
|
|