Hello colleague,
I use the mdlElmdscr_new function, but it does not aperate and it lunchs an exception.
So, I'd like to know what are the reasons that prevent the good execution of this function.
Tanks.
Can you paste your code snippet ? The mdlElmdscr_new function normally is used to convert an MSElement to MSElementDescrP. For example, the following code snippet set an new created element's display priority:
MSElement el; MSElementDescrP edP = NULL; ...... mdlShape_create (&el, NULL, ...); mdlElmdscr_new (&edP, NULL, &el); mdlElmdscr_setDisplayPriority(edP,100); mdlElmdscr_add(edP); mdlElmdscr_freeAll(&edP);
HTH, YongAn
Unknown said: I use the mdlElmdscr_new function, but it does not aperate and it lunchs an exception.
This means you have a pointer problem. As Yongan said, if you post a code snippet, it will give us more information about how to fix the problem.
Kind regards,
Sedat AlisAEC Technology Inc.