Here is my piece of code:
Additional information: the document contains some annotations. If annotations are not present, it seems to work.
Thank you in advance for your help
Copy link to clipboard
Have you registered for the WillClose ( I think that is the name) notification and make sure that you are releasing all handles to the document or windows the document may use?
Thank you for your quick answer.
Looking at the handles, I've found that is came from the handles locked by the client. Once released, it works fine.