Be Responsible for Memory Management
水平要求 适用于ObjectARX applications Because AutoCAD has limited resources to share among the applications it runs, it is important to free any resources allocated for you when they are no longer required. Examples include iterators, temporary objects, and strings and arrays of various types returned from APIs. The API documentation specifies when it is the caller's responsibility to destroy resources allocated during the call. If a contract is specified in the documentation, you should adhere to it. For example, no modal dialogs should result from a call.worldDraw() 父主题: |
|Archiver|CAD开发者社区
( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-6-1 15:04
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.