Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Bad Pointer?

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 169 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post