I convert a lot of text with mdlText_getElementDescr:
status=mdlText_getElementDescr (&edPText, &edP->el.text_2d, NULL);
if (status == SUCCESS)
{
// do nothing mdlElmdscr_freeAll(&edPText);
}
Used Memory grows over the time. Is there really a bug in this function? How to free the Memory? Is there any Workaround?
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Hi Tom,
Unknown said:here is the code
Thanks! Right now I have no idea what is wrong, but let's hope somebody else will have an idea.
Can you please edit your post and to use Syntaxhighlighter (yellow pencil icon in Advanced Editor mode) and set the language to C++, so you code will be displayed not as ugly plain text but as the real code?
Unknown said:The effect is only with true type text.
This is weird.
But some information still missing:
Unknown said:I started with mdl over 20 years ago
I understand, but it's not good. In such case I would still use assembler for 8bit processors and Pascal ;-)
Unknown said:...and it runs
Will not anymore pretty soon. MicroStation CONNECT Edition doesn't support pseudocode applications, so you will have to migrate your code to native MDL anyway and it's for sure better to migrate pseudocode app to native code at first in MicroStation V8i and in the next step to migrate working native code to CONNECT Edition than to try to solve both tasks at the same time ... in such case maybe it's easier to write the application from scratch.
And even in V8i it's not only recommended, but also better to use native C/C++ code, because of more standard programming environment and also an access to new MicroStationAPI that provides some extra features compring to C MDL API.
With regards,
Jan
Hi Stefan,
here is a file
Regards, Tom