Bad Pointer?
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/09/2008 at 14:13, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10.1
Platform: Windows ;
Language(s) : C++ ;---------
Anybody had an encounter with this?I declare a pointer like that:
>
\> BaseContainer \*myptr = NULL; \> myptr = myobject->GetDatainstance(); \>
Everyting I do with myptr results in strange crashes (e.g., I just have crashes when doing - >InitLength() on a cubic spline, but no crash when I do it on a linear spline).
When debugging with a breakpoint on the first line, I don't see "myptr = 0xcccccccc" as I was expecting, but "myptr = 0xcccccccc {priv=0xcccccccc <Bad Pointer> }".
When having a breakpoint on the second line (so the pointer should now be 0x00000000) I get: "myptr = 0x00000000 {priv=0x00000000 %§$=%§=*$&/+~?)#§$%?( }" and other strange crap.
What the hell is that?
Greetings,
Jack -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/09/2008 at 17:38, xxxxxxxx wrote:
Additions:
1. This only happens with BaseContainer pointers.
2. It seems, this only happens within the GetVirtualHierarchy function of a generator object.Strange, isn't it?