944,118 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1845
  • Java RSS
Nov 1st, 2009
0

Graphics + Threads = :(

Expand Post »
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
Reputation Points: 16
Solved Threads: 7
Junior Poster in Training
swinefish is offline Offline
77 posts
since Mar 2009
Nov 1st, 2009
0
Re: Graphics + Threads = :(
Last edited by quuba; Nov 1st, 2009 at 9:29 am.
Reputation Points: 123
Solved Threads: 106
Posting Pro
quuba is offline Offline
573 posts
since Nov 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: How to input and output from/or to a file?!
Next Thread in Java Forum Timeline: loading milkshape model in J2ME





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC