Hey all,
I'm updating one of my Windows 8 apps for 8.1 and its failing the
certification.
Direct3D Trim after Suspend
- Error Found: The Direct3D Trim after Suspend test detected the
following errors:
- Application App was not running at the end of the test. It likely
crashed or was terminated for having become unresponsive.
- Impact if not fixed: If the app does not call Trim on its Direct3D
device, the app will not release memory allocated for its earlier 3D work.
This increases the risk of apps being terminated due to system memory
pressure.
- How to fix: The app should call the Trim API on its IDXGIDevice3
interface anytime it is about to be suspended.
<http://go.microsoft.com/fwlink/?LinkId=294561>
I'm using SharpDX so the example they give me in C++ isn't much help. Also
I can only find one example on the web of this Trim with SharpDX but its
not much help, the Device3 it references doesn't exist on my SharpDX
objects.
http://www.packtpub.com/article/integrating-direct3d-xaml-windows81
So I'm a little stumped how I can call Trim. Perhaps I'll have to write my
own little assembly in C++ that just does that. Not a path I've been down
before though...
Any suggestions?
thanks
Stephen