| To: | Tomás Aguado Gómez <tomas.aguado@xxxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: QT+COIN |
| From: | Morten Eriksen <mortene@xxxxxx> |
| Date: | Mon, 1 Nov 2004 14:22:38 +0100 (CET) |
| Cc: | info-inventor-dev@xxxxxxxxxxx |
| In-reply-to: | <41864223.1020804@mi.madritel.es> |
| References: | <4180B321.7080803@mi.madritel.es> <20041028110113.GF20769@sim.no> <41836F5C.1050607@mi.madritel.es> <Pine.LNX.4.58.0411011204220.21479@valhalla.trh.sim.no> <41864223.1020804@mi.madritel.es> |
| Sender: | info-inventor-dev-bounce@xxxxxxxxxxx |
On Mon, 1 Nov 2004, Tomás Aguado Gómez wrote: > Yesterday I changed my code, and now the count reference (I see it with > the get Count reference Method) goes to zero when I "unref()" the node, > but the element (for example an sphere) stills remains there, [...] You do however need to removeChild() it from its parent node -- do you do that? Otherwise, what I suspect is going on, is that the parent node is still using the memory area of the (now deleted) child node. (Normally, that would cause a crash, but due to the peculiarities of C/C++, by freak accident it could "work".) Either that, or there is something else weird going on, like e.g. perhaps you have several spheres at the same spatial location, or some such. Morten -- http://www.coin3d.org |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: QT+COIN, Lars J. Aas |
|---|---|
| Next by Date: | Thanks You 2!!, Tomás Aguado Gómez |
| Previous by Thread: | Re: QT+COIN, Lars J. Aas |
| Next by Thread: | Thanks You 2!!, Tomás Aguado Gómez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |