We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have searched the examples and tutorials, and finding it difficult to locate a fix for this, At present I have a patch that runs successfully and opens fullscreen - When I press escape to exit the patch quits unexpectedly with the issue 'Could not run the sketch (Target VM failed to initialize).'
What am i missing out here? Can I create a keypress to exit fullScreen and cut out this error?
void setup() {
fullScreen(P3D);
PJOGL.profile=1;
surface.setResizable(true);
Answers
So I have moved the fullscreen command to settings
And at the end of my code created a keypress
exit();
command
The patch still runs successfully and only when I exit do I end up with the same issue. Any ideas what might be causing this?
I have yet to find a fix for this. The patch works, but appears to crash on exit every time. If anyone has any solutions to stop this, if you can let me know.. Thanks!