Graphics + Threads = :(

Reply

Join Date: Mar 2009
Posts: 58
Reputation: swinefish is an unknown quantity at this point 
Solved Threads: 3
swinefish swinefish is offline Offline
Junior Poster in Training

Graphics + Threads = :(

 
0
  #1
27 Days Ago
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
M
Whether you think you can, or think you can't, you're right.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 332
Reputation: quuba is on a distinguished road 
Solved Threads: 53
quuba quuba is offline Offline
Posting Whiz
 
0
  #2
26 Days Ago
Last edited by quuba; 26 Days Ago at 9:29 am.
Reply With Quote Quick reply to this message  
Reply

Tags
graphics, threads

Message:



Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC