• RAII applied to MDL memory allocation/deallocation

    Resource Acquisition Is Initialisation ( RAII ) is a C++ idiom. You'll find it referenced on many web sites.

    Here's an example applied to MicroStation using the MDL and the mdlModelRefIterator_api. This API lets you iterate a DGN model's attachments. As with many of MDL's C-style memory allocators, you must remember to deallocate the iterator manually in your C code. Wouldn't it be useful if your code could handle…

    • Mon, Jun 18 2012