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

RE: [DGN Platform public API, C++] "DgnCore2.dll" returns "Access violation" in case gathering attachments information for V7 dgn file

$
0
0
Jan, DgnPlatform is a component of the MicroStation SDK, with a public, documented API. Pretty much any interaction with DgnFiles, models, or elements goes through DgnPlatform, if sometimes indirectly.

Artem, access violation indicates invalid (usually null) pointer. Please confirm there are no such pointers in your own code.
For example, you are missing a check on your DgnModelPtr before accessing it - have you confirmed that LoadModelById() returns non-null?
auto type = model->GetModelInfo().GetModelType();

Regards,
Paul

Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>