Hi Gerrit,

I'm trying to debug a crash I see which might be introduced/triggered by 
the ref count/pointer changes I'm working on, but along the way I've 
noticed some things that seem strange to me:

- it seems we create created/changed entries in the CL for the 
prototypes, is this correct behavior ? The entries are created because 
the createEmpty macros use FieldContainer::newPtr<> which in turn calls 
onCreate, which calls registerChangedContainer.
- The macros for the create functions use FieldContainer::newPtr<Self> 
to create new instances and newPtr<ObjectT> just does new ObjectT, which 
AFAICS defeats the prototypes, because they are not cloned anymore and 
the type of the created object is determined statically from the object 
used to issue the create call. Am I missing something here ?

Debugging of the crash mentioned above shows that the problem seems to 
be the call pTmp->changed(...) in ContainerChangeEntry::commitChanges. 
gdb insists that pTmp points to an instance of FieldContainer, which 
should be impossible as it is a pure virtual class. Have you seen 
something like this before ?

        Thanks,
                Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-core

Reply via email to