A hooked DirectX 9 program crashes on window resize, texture related.

Posted by Ben on Stack Overflow See other posts from Stack Overflow or by Ben
Published on 2010-06-03T00:31:36Z Indexed on 2010/06/03 0:34 UTC
Read the original article Hit count: 316

Filed under:
|
|

I'm using EasyHook and SlimDX to overlay some graphics using SlimDX's Sprite and Texture classes. When I resize windows some programs fine, but others will crash - Winamp's MilkDrop 2 gives me an ambiguous memory error for example.

I expect this is due to the after market Texture I created. The question is what VTable function should I hook and/or how/when do I dispose and recreate the Texture? Reset perhaps?

If it isn't obvious I don't know much about DirectX.

© Stack Overflow or respective owner

Related posts about directx

Related posts about hook