PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Aug 15, 2025 4:26 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Nov 16, 2012 5:02 pm 
Offline

Joined: Fri Nov 16, 2012 4:40 pm
Posts: 1
I recently started using this library to do some quick PDF exporting procedures (which this has been great for - thanks for the great library!), and while working with it, I've stumbled across a bit of strange behavior:

While running some preliminary tests, I was having crashes when I attempted to save PDFs - or, more specifically, every subsequent time I tried to save. The first time I ran the application, things would work fine, but then when I tried to export the PDF again using the same filename in a future session, the application would crash with an exception saying "The process cannot access the file "..." because it is being used by another process".

Upon further investigation, I've come to realize that the issue was caused by having a Windows Explorer window open with a preview pane viewing the file. When I click away from that document, the issue goes away.


At this point I don't know whether this qualifies as a bug exactly - it's entirely possible that there is no way to identify that it is Windows Explorer using the file rather than some other process - so sorry if I've posted this in the wrong place. But I felt it was worth bringing to your attention regardless.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 19, 2012 9:23 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3135
Location: Cologne, Germany
PDFsharp cannot access the file if it is locked by Windows Explorer (or Acrobat Reader). So it's not a PDFsharp bug.

If I click an AVI file in Windows Explorer to delete it, then I have to wait until the thumbnail preview shows - otherwise the file cannot be deleted because it is in use.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 125 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group