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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    DescID [] operator crashes?

    Cinema 4D SDK
    c++ windows r23
    2
    3
    398
    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.
    • fwilleke80F
      fwilleke80
      last edited by fwilleke80

      Hello,

      I mostly develop on macOS and use Windows for builds only. So far this has always worked.

      But not today, I have this happening reproducibly now for all my objects:

      Capture.JPG

      Unhandled exception thrown: read access violation.
      DescID::operator[](...) returned 0x7FF8C640C128.

      Running Cinema with the plugin in Release mode will freeze Cinema. In Debug mode, I see what's shown on the above screenshot.

      Any ideas?

      Cheers,
      Frank

      www.frankwilleke.de
      Only asking personal code questions here.

      1 Reply Last reply Reply Quote 0
      • C4DSC
        C4DS
        last edited by

        I don't have a solution for you, however for safety I always check if node is valid

        Bool DisplayMode::GetDEnabling(GeListNode* node, const DescID& id, const GeData& t_data, DESCFLAGS_ENABLE flags, const BaseContainer* itemdesc)
        {
        	if (!node)
        		return false;
        
        	switch (id[0].id)
        	{
        

        Might not be of any help to you, as if node would be nullptr, it would throw an exception on line 468 in your case

        1 Reply Last reply Reply Quote 0
        • fwilleke80F
          fwilleke80
          last edited by

          Already found the reason, sorry to bother you, all good 🙂

          Cheers,
          Frank

          www.frankwilleke.de
          Only asking personal code questions here.

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