Scurvy Media: InvalidOperationException

By on 1/19/2008

If you receive this error when calling the update method on the Video class:

The operation was aborted. You may not modify a resource that has been set on a device, or after it has been used within a tiling bracket.

Then this thread might offer some insight into how to avoid it:

I got around it by putting this line of code to null out the texture on the video card before the update method gets called on the Video class in the sample project:

GraphicsDevice.Textures[0] = null;

See more in the archives