Slick Forums

Resizing a JFrame with a CanvasGameContainer crashes the app
Page 1 of 1

Author:  JakeJeremy [ Sun Dec 27, 2015 9:31 pm ]
Post subject:  Resizing a JFrame with a CanvasGameContainer crashes the app


I want to use Slick for a project of mine; I have already used it once and really liked the library. Sadly I am having a problem which I don't know the cause of, and if I can't solve it I'll sadly have to use a different library.

Namely: I want my game to support dynamic resizing. This obviously shouldn't be complicated to do - one might think. I tried it, and upon resizing, my application crashed. Well, surely I made a mistake somewhere! So I went and had a look at how it is done in the tests. The problem is: Even the resizing test crashes. I downloaded the latest library version from the Bitbucket repository (as I had the same problem with the normal one), compiled the library, set the native paths etc and finally started the org.newdawn.slick.tests.CanvasSizeTest-main-function. Upon doing so the window correctly opens, but when I try to resize it the application crashes. No crash log is generated; I tried to set a path using VM params, but it didn't work.

Any help with this would be highly appreciated!

I tested this behaviour on Windows 8 as well as Windows 10.

Author:  WeaselNinja [ Sun Apr 03, 2016 4:49 pm ]
Post subject:  Re: Resizing a JFrame with a CanvasGameContainer crashes the

I'm having the same problem on Windows 7. My best guess is a problem with jdk or the natives maybe? If anyone has a solution to this before I jump down the rabbit hole I would be much obliged.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group