I'm currently facing a slight problem where changing mode on my application causes an error with 'Failed Resetting the Direct3D device' message.
I'm using the managed direct3D framework and it currently works fine with line and sprite rendering. After added transparent boxes to the system, I got the above error, when mode changing. This I'm assuming is down to not disposing and resetting the vertexBuffer correctly.
After reading the help and searching online for examples, I can only see the following;
OnResetDevice(...) - Creates and setup the vertexBuffer.
I didn't see any other handling of the vertexBuffer, in any of the other calls, ie OnLostDevice() etc.
The code works fine and is happy with normal operation, ie opening the app, using it and then closing the app. However mode changes, ie screensavers, full screen etc calls this failed resetting the device error.
Therefore, please could soomeone clear this confusion I have, and explain how to actually handle a created vertexBuffer correctly in a managed framework application
many thanks in advance,
Game Technologies: DirectX, XNA, XACT, etc.11