Hi,
I have written an Adobe plug-in which creates a menu item, performs various functions when selected and then tries to close the document. With the code cut down to its bare minimum as below it won't close the document and causes Adobe itself to crash.
I have also tried this from a toolbar button and it still crashes.
Any help with this would be greatly appreciated.
Regards
Stuart
ACCB1 void ACCB2 ShowButtonMessage (void* data)
{
AVAlertNote ("Button clicked...closing document");
AVDoc avDoc2 = AVAppGetActiveDoc();
PDDoc pdDoc2 = AVDocGetPDDoc (avDoc2);
PDDocClose(pdDoc2);
}