Hi all,
I’m trying to make an app, where a thread can perform various tasks when no rendering occurs. When render occurs (i.e display() is called), a flag in the thread is set to true, and the thread waits until the flag is set to false. That flag is set true at the begining of the display(), and is set to false when display ends. The thread’s run can call an update method, which calls display(), but only if display isn’t running at that time.
The problem is that is some occasions I get the “Error making context current” GLException message, accompanied by a number: -1073282975, and the whole thing freezes… Does anyone know what does this number mean? What would be an efficient way to use threads that can cause repaint whithout getting the above exception?
TIA
N