Question
Cancel the creation and deletion of pageItems
I´m trying to avoid the creation and deletion of pageItems, observing protocol IID_IHIERARCHY_DOCUMENT and kNewPageItemCmdBoss and kDeletePageItemCmdBoss commands, aborting with the PMSetGlobalErrorCode function.
The problem is with the kNewPageItemCmdBoss:
When I cancel the creation, automatically launches a new deletion, also intercepted, and InDesign crashes.
Is there any way to do this without the deadlock?
Regards
