Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / February 2004

Tip: Looking for answers? Try searching our database.

Multiple canvas3D

Thread view: 
Ved - 01 Feb 2004 02:22 GMT
hi,
I have a swing + java3D program which creates and destroys a large
number of canvas3Ds.Depending on the set of buttons pressed a new
canvas3D is displayed each time.The program works fine upto a point but
once the number of canvas3Ds created and destroyed is large(~20) the
program crashes with a java.lang.InternalError. I get this error inspite
of freeing up earlier canvas3D's and calling System.gc()(i know it is no
longer recommended to call System.gc).Since Canvas3D is a heavyweight
component, is the jvm running out of some resource?

I can recode my app to use a single canvas3D and change the
scenegraph(add and delete branches). I just want to exhaust all
possiblities before doing this.

Any tips and suggestions as to what is to be done?

ved
Sascha Ledinsky - 06 Feb 2004 09:28 GMT
hi,

I've had the same problems, somtimes it even crashed Win2k with a bluescreen when hardware-acceleration (ATI card) for GL was turned on...
I got the impression that the whole thing isn't really tested for applications which create and destroy multiple Canvas3D objects - even JOGL and GL4Java seem to have the same problems.

If you can rewrite you app to just change the scene-graph I'd do it this way!
I never found a solution to this problem altough I spent weeks trying... :-(

> hi,
> I have a swing + java3D program which creates and destroys a large
[quoted text clipped - 13 lines]
>
> ved
Ved - 19 Feb 2004 21:41 GMT
Hi,
I changed my design (now altering the scenegraph instead of multiple
canvas3Ds) and it works like a charm. I suspect multiple canvas3D's is
not such a good idea
thanks anyway
vyas

> hi,
>
[quoted text clipped - 26 lines]
>>
>> ved


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.