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

    DTYPE_LONG description element

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 159 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 31/05/2008 at 06:39, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi, this is some really weird stuff. I've got some DTYPE_LONG-custom description elements which are added in GetDDescription like here:

      > <code>
      >
      > Bool MoCap::GetDDescription(GeListNode* node, Description* description, LONG& flags){     
      >
      >      //load the available resource file
      >      if (!description->LoadDescription(node->GetType())) return FALSE;
      >      
      >      ...
      >
      >
      >      BaseContainer count = GetCustomDataTypeDefault(DTYPE_LONG);
      >      count.SetString(DESC_NAME, "Count");
      >      if (!description->SetParameter(DescLevel(DESC_CHILDREN, DTYPE_LONG, 0), count, DescLevel(MAIN_GROUP))) return TRUE;
      >
      > ....
      >
      >      flags |= DESCFLAGS_DESC_LOADED;
      >
      >      return TRUE;
      > }
      >
      > </code>

      Strangely you can change the long value dragging the mouse without any problem. But when you manually put in the value and press the return button, a memory error occurs. This doesn't happen when you e.g. press the tab button instead of return. Any ideas?

      J.

      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 02/06/2008 at 06:15, xxxxxxxx wrote:

        Problem solved...

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