JNI C++ OpenGL Window Crash
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.
3 Replies
⌛
This post has been reserved for your question.
Hey @The Typhothanian! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Errors
Window Processes
Window Init
And, window updating
Please help. I have no clue what the problem is. It worked fine before OpenGL.
The SwapBuffers method seems to be the issue?
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.