Dirk Scheffter (scheff++at++usg.iff.fhg.de)
Fri, 19 Nov 1999 15:39:43 +0000
May be, somebody can help me to solve administrative things in my application.
pfNodes should be created and destroyed on the fly. (Application provides add,
selection and delete commands.)
Especially, deleting instances fails from time to time. I guess, what's missing
is a basic understanding of internal pfNode administration in my mind.
To illustrate what happens I describe the individual parts in the following:
1. Each model (.flt) is loaded only once. If a certain model is added, the app
looks into a list of all loaded models (comparing the file names). If requested
model is absent then it happens a request to the loader which stays in DBase
process. Loader returns a result after model has been loaded successfully or
loader has failed. (The last case is not important for this.)
2. Adding a model happens as follows: Get pfNode *pPfNode from loader, pfNode
*pPfNodeCopy = pPfNode->clone(0);, add created copy to scenegraph. This works
like expected.
3. Deleting a model happens as follows: pfAsyncDelete(pPfNodeCopy); This works
mostly but fails from time to time. (App mostly doesn't crash but some nodes
are still existant.)
I tried pfDelete instead but this let the app crash.
(One additional note: All things except the loading of nodes are done in App
process.)
I read a lot about pfDelete(), pfAsyncDelete(), pfNode::ref(), pfNode::unref().
Following this pfDelete() should be the correct choose. But in my app I
recogniced another behavior.
What I miss is a detailed description of pfNode::clone(). (Man pages are giving
only a rough idea.)
May be, somebody could clarify what special considerations are necessary. If
necessary I will describe things more detailed.
pfGreetings and nice pfWeekend,
Dirk.
-- ----------------------------------------------------------- Dipl.-Inf. Dirk Scheffter scheff++at++iff.fhg.de Fraunhofer IFF fon: +49 (0) 391/40 90-854 Sandtorstr. 22 fax: +49 (0) 391/40 90-870 D-39106 Magdeburg http://www.usg.iff.fhg.de/~scheff Germany --------< Try this: http://www.usg.iff.fhg.de/ibft/mowib >-
This archive was generated by hypermail 2.0b2 on Fri Nov 19 1999 - 07:28:25 PST