Login  Register

Re: Crash when creating more than ~15 jogl/awt windows

Posted by GiGurra on Jun 12, 2011; 2:13pm
URL: https://forum.jogamp.org/Crash-when-creating-more-than-15-jogl-awt-windows-tp3054540p3055622.html

Tried to see if running in separate threads would make a diff? - Same result.
But if run in a separate process it works fine :S
So the code below does not help:

        /* Uncomment for NEWT */
        for (int thread = 0; thread < 2; thread++) {
            final Thread t = new Thread(new Runnable() {

                @Override
                public void run() {
                    final GLCapabilities glcapabilities = new GLCapabilities(GLProfile.getDefault());
                    for (int i = 0; i < 30; i++) {
                        final GLWindow window = GLWindow.create(glcapabilities);
                        window.setSize(300, 300);
                        window.setTitle("Window " + i);
                        window.setVisible(true);
                    }
                }
            });
            t.start();
        }


same crash