March 14, 2005
5:02 p.m.
Hi, I'm having a problem with dynamic casting on an object constructed using Python. It seems as though the type of an owned object is being lost. I have a test as follows: assert (dynamic_cast<element::Comments *>(loc.getElement(elists[0])) !=NULL); When I invoke it from the constructor of the owning object (the object that owns elists), the test passes. But when I construct the owning object and then invoke the test through Python, it fails. I'm using gcc 3.0.4 from Debian stable. This looks ugly to me. So far the only explanation I've been able to come up with is memory corruption. Aaron -- Aaron Bentley Director of Technology Panometrics, Inc.