Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Tcl-NAP is deleting my referenced object

6 views
Skip to first unread message

EKB

unread,
Apr 26, 2008, 9:17:06 AM4/26/08
to
Hello,

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

Gerald W. Lester

unread,
Apr 26, 2008, 3:58:05 PM4/26/08
to

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|
+------------------------------------------------------------------------+

EKB

unread,
Apr 26, 2008, 4:36:48 PM4/26/08
to

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.

EKB

unread,
Apr 26, 2008, 5:07:21 PM4/26/08
to
On Apr 26, 3:58 pm, "Gerald W. Lester" <Gerald.Les...@cox.net> wrote:

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

0 new messages