Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Quiting OpenGL window

meistrv
Beginner
578 Views
I have a small problem. After some computation a window with a graph appears - it is OK. When I try to make the computation again I got a message ERROR: "Failed To Register Window Class". Why? What's wrong?
When I debug it, it stops at the bold line.

Here is the part of the code where the window is created:

...
CALL fauxInitDisplayMode (IOR(AUX_SINGLE , AUX_RGBA))
CALL fauxInitPosition (0, 0, 480, 480)
iret = fauxInitWindow ("Phase Diagram"C)
call fauxReshapeFunc(LOC(Resize))
call fgluOrtho2d(DBLE(-1.0), DBLE(1.0), DBLE(-1.0),DBLE(1.0))
call fauxKeyFunc(AUX_SPACE,LOC(Mezernik))
call fauxMouseFunc(AUX_RIGHTBUTTON,AUX_MOUSEDOWN,Mezernik)
call CreateScene
call fauxMainLoop(LOC(nakresli))
call fauxCloseWindow ()
return
end SUBROUTINE
0 Kudos
1 Reply
meistrv
Beginner
578 Views
One thing I forgot:
when this happens, after quiting the whole program it still runs and I have to end it via CTRL-ALT-DEL.

Vit
0 Kudos
Reply