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…