Welcome to the Harris Geospatial product documentation center. Here you will find reference guides, help documents, and product libraries.


Harris Geospatial / Docs Center / Using IDL / Cleaning Up - IDL_KW_FREE Macro

IDL

Cleaning Up - IDL_KW_FREE Macro

Cleaning Up - IDL_KW_FREE Macro

All normal exit paths from your system routine are required to call the IDL_KW_FREE macro prior to returning. This macro must be called exactly once for every call to IDL_KWProcessByOffset().

You must therefore structure your code so that IDL_KW_FREE executes before any return statement. Many functions to not use an explicit return statement, relying on the implicit return that occurs when execution comes to the end of the function. In such a case, IDL_KW_FREE must be the last statement in the function.



© 2017 Exelis Visual Information Solutions, Inc. |  Legal
My Account    |    Buy    |    Contact Us