PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Image file not freed in MigraDoc
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3618
Page 1 of 1

Author:  redcurry [ Mon Jul 03, 2017 10:04 pm ]
Post subject:  Image file not freed in MigraDoc

I'm adding an image to my document. I create the image in a temporary file that I try to delete after rending the PDF. However, I'm unable to delete the file because the renderer does not appear to free it after using it. I proved this to myself by adding a breakpoint at the point of calling the RenderDocument() method. Before executing it, I'm able to delete the file. However, after executing it I'm not. Is this a bug, or am I doing something wrong? Thanks.

Author:  TH-Soft [ Tue Jul 04, 2017 6:05 am ]
Post subject:  Re: Image file not freed in MigraDoc

Hi!

I assume you are using version 1.32.
Use the latest version of PDFsharp 1.50 instead. Temporary files are no longer needed (if you want to change your code for improved performance) and they are no longer locked after freeing the objects (if you do not want to change your code).

Author:  redcurry [ Wed Jul 05, 2017 2:36 pm ]
Post subject:  Re: Image file not freed in MigraDoc

Hello, and thank you! Yes, I'm using v. 1.32 because v. 1.50 is still in Beta. But I'll upgrade in order to gain the functionality I need. Any idea when v. 1.50 will come out as a Release version?

Author:  TH-Soft [ Wed Jul 05, 2017 8:59 pm ]
Post subject:  Re: Image file not freed in MigraDoc

redcurry wrote:
Any idea when v. 1.50 will come out as a Release version?
See this post:
viewtopic.php?p=10941#p10941

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/