Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Replacing AVDocClose causes I.E. 9 to crash

$
0
0

Follow up:

 

I ended up having to use AVDocWillClose event instead of AVDocDidClose event. All I need is the path of the document being closed so that I can notify my program which file was closed. Unfortunately I get an  exception in the AVDocDidClose event when I try and get the document path from the AVDoc that is passed in.

 

ASFile pdffile = PDDocGetFile (AVDocGetPDDoc(doc));

ASPathName myname = ASFileAcquirePathName(pdffile);

CString strDocPath = ASFileSysDisplayStringFromPath(NULL, myname);

 

The exception is raised when ASFileSysDisplayStringFromPath() is called. These same lines of code work with the AVDocClose replacement and the AVDocWillClose event.

 

Howie


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>