Re: possible bug in .iv loader
John Rohlf (jrohlf++at++tubes)
Thu, 10 Nov 94 16:06:00 PST
>
> I encounter the following error:
>
> Performer Warning (2): Attempt to access deleted object.
>
> When performing a certain sequence of functions:
>
> 1. load a .iv file (from the Friends CD)
> 2. clone it and place it under a DCS
> 3. later on pfDelete the cloned instance under the DCS
> 4. try to reclone the original
>
> When using a .flt file, this error does not occur. After
> printing the error, the program dumps core (the location is the
> #4 function).
>
> It might have something to do with the fact that I am not cloning the
> DCS, but the node underneath it (which is returned from LoadFile).
> Perhaps the DCS reference count is not increased or something. Any
> ideas? I do not have an .iv --> .flt converter, so...
To be safe, add the instance to a dummy group so it
won't inadvertently be deleted.
node = LoadIv("foo.iv");
pfAddChild(shepherdGroupWhoWatchesOverThePerformerFlock, node);
pfAddChild(dcs, clone = pfClone(node, 0));
pfDelete(clone);
pfAddChild(dcs, clone = pfClone(node, 0));
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:50:39 PDT