02-10-2016 11:37 AM
Hi! I'm trying to upgrade our app (quite heavy) to MS 2015 (from MS 2013). I see very large memory leak that's related to graphs. It looks like direct3d engines are leaking memory (do you use both d3d 9 and d3d 10?), as well as wpfgfx_v0400. Basically in couple of hours it leaks around 4G of memory.
Are you aware of such leaks? Any ideas how to debug this?
It's possible that we're doing something wrong (we did few hacks here and there), but we didn't have such issues with MS 2013...
02-10-2016 01:30 PM
Sorry to hear that you are seeing a memory leak. We're not specifically aware of any memory leaks related to Direct3D usage, but perhaps you can help track this down.
WPF itself uses Direct3D 9 for rendering. The Measurement Studio WPF graph's Auto and Hardware render modes use Direct3D 10 rendering, which interfaces with WPF's Direct3D9 through a shared surface. Direct3D 10 support is handled through managed wrappers around COM types, and video card drivers also have their own unmanaged memory pool that is atributed to the process.
Here are a few things to try (in suggested order):
I also have a few questions:
07-29-2016 07:26 AM - edited 07-29-2016 07:27 AM
You need to reset the Content property (of the VisualModel3D) to 'NULL' because your object is still reference by the geometry, which is hold by a vertex buffer in directx