I am creating a Tcl-NAP object with the following statement:
set in [nap_get hdf $info(hdffile) "$SDS"]
where "in" is a namespace variable (call it namespace "foo"). Then I
use it later to view specific data points in the 3-d array:
set ::result [[nap "foo::in($::xval, $::yval, 0)"]]
But I can only do this once. After one use, I get the error
"Nap_Index: Left argument is unknown NAO ID ::NAP::15-14". So it looks
like it's deleting my object. But I've got it referenced!
Does anyone know what might be going on here?
Thanks,
Eric
I'm not sure how many Tcl-NAP users/developer read the list -- you may get
better response by posting your question on one of the mailing list
mentioned on the Tcl-NAP site (http://tcl-nap.sourceforge.net/).
--
+--------------------------------+---------------------------------------+
| Gerald W. Lester |
|"The man who fights for his ideals is the man who is alive." - Cervantes|
+------------------------------------------------------------------------+
Thanks! I posted on the Help discussion forum there, but mine was the
only post, so I wasn't sure it was active. I'll try that mailing list.
Well, I got a bounce when posting my message on the list, but I
figured it out anyway! Apparently, for an object to be retained by NAP
(which does garbage collection), it has to be assigned within a NAP
command, not using set. So this works:
nap "in = [nap_get hdf $info(hdffile) "$SDS"]"
Eric