简体   繁体   中英

Why do I get an error after closing my GDX game window?

I created a new GDX project, added all the necessary configs so that it runs the way it should be. The problem, however, is that whenever I close the game window, it displays the following error:

Execution failed for task ':desktop:DesktopLauncher.main()'.> Process 'command 'C:/Program Files/Java/jdk1.8.0_181/bin/java.exe'' finished with non-zero exit value -1

Is it something I should be worried about? And if so, what should I change in my project/configs?

You can see the screenshot of my config file below:

这是配置文件,用于上下文

Nothing to worry about.

You can get rid of it by applying this config:

LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
...

config.forceExit = false;

More details: https://badlogicgames.com/forum/viewtopic.php?f=11&t=13209

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM