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

MS.Win32.HwndWrapper Memory Leak?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2896
Page 1 of 1

Author:  micado [ Wed Aug 13, 2014 7:53 am ]
Post subject:  MS.Win32.HwndWrapper Memory Leak?

Hi,

I'm running the WPF-version (1.32.2608.0) of pdfsharp on a webservice where it renders simple documents with some text and images.
After a while (a week or so) my handler throws this exception though:

Exception information:
Exception type: Win32Exception
Exception message: Not enough storage is available to process this command
at MS.Win32.HwndWrapper..ctor(Int32 classStyle, Int32 style, Int32 exStyle, Int32 x, Int32 y, Int32 width, Int32 height, String name, IntPtr parent, HwndWrapperHook[] hooks)
at System.Windows.Threading.Dispatcher..ctor()
at System.Windows.DependencyObject..ctor()
at System.Windows.Media.Visual..ctor(ResourceType resourceType)
at System.Windows.Media.ContainerVisual..ctor()
at PdfSharp.Drawing.XGraphics..ctor(PdfPage page, XGraphicsPdfPageOptions options, XGraphicsUnit pageUnit, XPageDirection pageDirection)
...

Is this a known problem in web environments or is a memory leak (which i haven't found so far) on my end more probable?
Many thanks in advance!

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