Various cases in which adl_adRecompact API return error -22?

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.