DTYPE_LONG description element



  • 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.



  • 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...


Log in to reply