Archived

This topic is now archived and is closed to further replies.

Kick Start Managed Direct X 9 by Tom Miller, Chap 3 error

This topic is 4959 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, i got the Kick Start Managed Direct X 9 by Tom Miller and i have been working through the tutorials until i cam to chaper 3 and i got an error, at first i tought it was just my crap coding but i get the same error from the code from the cd. Anybody had the same trouble or can tell me whats going wrong. Error: An unhandled exception of type ''Microsoft.DirectX.Direct3D.InvalidCallException'' occurred in microsoft.directx.direct3d.dll Additional information: Error in the application. Line: tex = new Texture(device, new Bitmap(this.GetType(), "puck.bmp"), Usage.Dynamic, Pool.Default); Thanks for any help, -Dave

Share this post


Link to post
Share on other sites
It''s not an error in the book I think, invalid call means you are using arguments that don''t go well together. I think Dynamic and Default don''t go together. Try Pool.Managed or Usage.None.

Or the texture format you are trying to create isn''t supported.

Share this post


Link to post
Share on other sites