Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] mdlTag_freeValue not in library files

$
0
0

[quote user="Frode Tørresdal"]I would rather not have any memory leakage[/quote]

Me neither!  I notice that there is a tag value class DgnTagValue, declared in header DgnPlatform.r.h.  That class is richer than the TagValue struct in V8i, as it includes methods as well as data.

There is method DgnTagValue.ClearCurrentValue().  Help tells us that it 'clears the current value'.  That could mean that it frees string and binary memory.  But it would be nice to know for sure.  If so, that would make mdlTag_freeValue redundant.

mdlTag_create and mdlTag_extract both take a DgnTagValueP rather than a TagValue*.


Viewing all articles
Browse latest Browse all 7260

Trending Articles