Hey All

I'm working on a graphics project at the moment, and although the details themselves are a little tedious (I won't bore you with them all) I am having some problems. My app was working beautifully, rendering my shapes with ease. But in an attempt to make it more efficient, I decided to make it multi threaded...

Well Now things are going less well. My code draws a number of polygons on screen (to represent the faces of a shape) and although in the non-threaded version, these are all drawn properly, in the multithreaded version many of my polygons just don't draw, instead throwing a ClassCastException. It says "sun.java2D.NullSurfaceData cannot be cast to sun.java2D.D3D.D3DSurfaceData"

Anybody else had this problem? Any advice?

Thanks in advance