Hi. I'm new to C++ and JNI, and just started yesterday. I am trying to make my own OpenGL window system. (yes, I know that is a big task, and I don't care)
I got a window a while ago, but now there is a weird issue. I get this console output java-side:
1 Invalid window handle.
2 Invalid window handle.
3 Invalid window handle.
4 Invalid window handle.
...
4 The system cannot find the file specified.
...
1 Invalid window handle.
2 Invalid window handle.
3 Invalid window handle.
4 Invalid window handle.
...
The numbers at the start of each line indicate where in my C++ program the issue is coming from. I don't know why the middle one is there, because I'm not loading any files. The "invalid window handle" comes from resizing one dimension of the window, and the crash comes from resizing two at the same time. My code is in comments. Please help.