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

[v8i MDL] Can I use 'new' instead dlmSystem_mdlMalloc to dynamically allocate memory for an array of DPoint3d?

$
0
0

 

Hi All

I've been using the 'new' operator to  allocate vectors as follows:

                                  DPoint3d *pnts = new DPoint3d[_size_]; 

                                 ........

                                 delete [] pnts;

My question is: is it safer to use dlmSystem_mdlMalloc and dlmSystem_mdlFree to allocate and free memory in MDL applications run offline as a batch pgms?

If the answer is yes then if we're using an external API in our MDL pgm, how is MicroStation managing the memory related to calls to the external dll ?

Thanks,

Nabil


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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