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

Home » Public Forums » archive » Re: Once again, an error I don't understand
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: Once again, an error I don't understand [message #28276] Sat, 01 December 2001 07:44 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Adam Rankin (arankin@irus.rri.on.ca) writes:

> % IDLGRMODEL::ADD: Objects can only have one parent at a
> time: <ObjHeapVar3833(IDLGRIMAGE)>
>
> sigh, wish I wasn't a n00b.
> hate to waste your time, but the formation of an IDL programmer takes
> time... (yukyuk)

Probably less time, if you get rid of those common blocks. :-)

This error occurs when you try to add the same
object to more than one object hierarchy. For
example, you can generate the error by creating
an image object and trying to add the image object
to two different model objects. The idea (I think)
is that as you build an object hierarchy, each
object can have many children, but only one parent.
That is, there is only one connection from an object
in the UP direction in the hierarchy.

> this is the code in which it takes place...

Uh, I don't do code. Particularly this *much* code! :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Once again, an error I don't understand [message #28333 is a reply to message #28276] Tue, 04 December 2001 08:44 Go to previous message
Adam Rankin is currently offline  Adam Rankin
Messages: 15
Registered: July 2001
Junior Member
Hehe, I'll learn someday to get rid of em...

But as I read the (usefull) block of code, to me it seems like I'm adding
multiple image objects to one model... which seems to me like many
children to one parent.

FOR i=0, nb-1 DO BEGIN
oImage[i] -> SetProperty, DATA=image[*,*,i] ;where image is a 3d array
oImageModel -> Add, oImage[i]
END

oImageView -> Add, oImageModel

-Adam

On Sat, 1 Dec 2001, David Fanning wrote:

> Adam Rankin (arankin@irus.rri.on.ca) writes:
>
>> % IDLGRMODEL::ADD: Objects can only have one parent at a
>> time: <ObjHeapVar3833(IDLGRIMAGE)>
>
> Probably less time, if you get rid of those common blocks. :-)
>
> This error occurs when you try to add the same
> object to more than one object hierarchy. For
> example, you can generate the error by creating
> an image object and trying to add the image object
> to two different model objects. The idea (I think)
> is that as you build an object hierarchy, each
> object can have many children, but only one parent.
> That is, there is only one connection from an object
> in the UP direction in the hierarchy.
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Windows XP
Next Topic: Once again, an error I don't understand

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

Current Time: Wed Oct 08 15:38:05 PDT 2025

Total time taken to generate the page: 0.00677 seconds