A
Anthony Meehan
Hi,
We are using the ElementHost control to host a WPF control (which is mainly
a subclassed WPF RichTextBox control) within our WinForms application. The
WinForms application has a tab-based interface, so the user quite often has a
number of these ElementHost controls open at once, and opens and closes them
frequently.
The problem we are seeing is that the application is using a large amount of
memory, and it appears to be the ElementHost control causing the problem.
When running CLR Profiler, we can see that a large amount (ie tens of
megabytes) of Byte[] data is generated by the ElementHost.
Is this a known issue? Users are eventually receiving OutOfMemoryException
exceptions in production after extended use.
Thanks,
Anthony.
We are using the ElementHost control to host a WPF control (which is mainly
a subclassed WPF RichTextBox control) within our WinForms application. The
WinForms application has a tab-based interface, so the user quite often has a
number of these ElementHost controls open at once, and opens and closes them
frequently.
The problem we are seeing is that the application is using a large amount of
memory, and it appears to be the ElementHost control causing the problem.
When running CLR Profiler, we can see that a large amount (ie tens of
megabytes) of Byte[] data is generated by the ElementHost.
Is this a known issue? Users are eventually receiving OutOfMemoryException
exceptions in production after extended use.
Thanks,
Anthony.