Various cases in which adl_adRecompact API return error -22?

The possible cases in which error -22 comes, on calling adl_adRecompact () API is:
• In case the recompaction is done once and if it is done again error -22 will be returned. The reason for this is re-compaction take some time to complete and if re-compaction is tried again without letting the first operation to finish, it will cause the error.
• In case a cell of undefined size( ADL_AD_SIZE_UNDEF)exist without being finalize and adl_adRecompact() API is called.

Embedded Debugging: Enables developers to speed up embedded software fine-tuning by managing application execution through suspend/resume, step-by-step, standard and conditional breakpoints, and data watch capabilities in conjunction with Developer Studio.
Note 1: library/application has to be compiled in DEBUG mode to be able to use it. Library/application compiled in RELEASE mode can’t be debugged.