ASAbirami Selvan Syncfusion Team October 15, 2015 12:37 PM UTC
Thank you for contacting Syncfusion support.
We are unable to reproduce the issue getting memory raises when draw the JPEG image into PDF document. We have attached the sample and output document which we have tried to reproduce the issue.
Please refer the following link: http://www.syncfusion.com/downloads/support/forum/120785/ze/PDFImage-1506640314
Could you please provide us the image and output PDF document which you have reproduced the issue. It will help us to proceed further analysis in this.
ESEvan StollOctober 15, 2015 09:18 PM UTC
Well, I refactored some of the methods and the memory leak ended up being the cause. Lesson learned: using statements are your friends.
To be a little more specific, I just created a file as a destination for the PDF, then called
using (Stream s = new FileStream(/*string*/>f.Path, FileMode.OpenOrCreate))
await Task.Run(() => SaveAsPdf(/*StorageFile*/f, /*Manga*/m));
Various other things needed to be moved around, but leaving the FileStream open ended up being the problem.
I guess the memory leak wasn't unrelated at all.
PHPraveenkumar H Syncfusion Team October 16, 2015 11:11 AM UTC
We are happy to know that the memory issue fixed in your side.
Please share us documents and screenshots if you face any issues further, we will happy to assist you.