On 07/07/2015 at 09:36, xxxxxxxx wrote:
Cinema 4D Version: R15
Platform: Windows ;
Language(s) : C++ ;
I've just recently update Melange to version 15.003, and I'm getting a sporadic crash with the following code:
BaseTag* tag = searchOp->GetFirstTag(); if (tag->GetParameter(TEXTURETAG_RESTRICTION, data)) String name = data.GetString();
Right when getting the name. As it turns out, TEXTURETAG_RESTRICTION could sometimes return values that are not of type DA_STRING, and because I'm always reading a String, the application crashes.
This does not happen with the old version, but I have no problem in verifying the data type, and only execute the code if the type is DA_STRING.
My question is, what could be the values of tag->GetParameter(TEXTURETAG_RESTRICTION, data) ?
What is the meaning of an Int32 for example?