Archived

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

Tylon

MDX Minimize Exception

Recommended Posts

When I minimise my form, the Reset event is fire calling my OnReset event where I do nothing but set the cullmode to none and lighting to false (like most examples). however, I seem to get an unhandles exception at the cullmode = cull.none. This only happens when i minimise, any other time the OnReset handler is called its fine (ie when resizing). The exception message is simply "Error in the application" Anyone know what might be causing this? Error in the application. -2146232832 (Unknown) at Microsoft.DirectX.Direct3D.Device.SetRenderState(Int32 state, Int32 value) at Microsoft.DirectX.Direct3D.RenderStates.set_CullMode(Cull value) Edit: It is just a windowed app. [edited by - Tylon on August 10, 2003 5:57:45 PM]

Share this post


Link to post
Share on other sites
Im using Microsoft C# compiler, .net framework 1.1

It happens at the cullmode = cull.none call. But only when its minimised, if i call it at any other time it works fine.

Share this post


Link to post
Share on other sites