when adding a timer like this:
timer = New Timer( 60, OnUpdate )
I get a SDL_PeepEvents error:
in the console output when closing the app. Of course the OnUpdate method is there (but does nothing).
I mean there is no crash, everything works fine, just this message when closing the app… What does that mean?
So it doesn’t happen for others?
I get the same error. Don’t know why. If I run the below in a command window, I get this printed to STDOUT:
and this printed to STDERR:
AL lib: (EE) alc_cleanup: 1 device not closed
This is true whether I compile in debug or release.
Without the timer, the SDL error disappears, but the AL error remains.
Class MyWindow Extends Window
Method New( title:String="Simple mojo app",width:Int=640,height:Int=480,flags:WindowFlags=Null )
Super.New( title,width,height,flags )
timer = New Timer(60,OnUpdate)
x = 0
x = (x+1)Mod 640
Method OnRender( canvas:Canvas ) Override
canvas.DrawText( "Hello World!",x,Height/2,1,.5 )
I see that error too developing ted2go.
Don’t know what is it.
I often compile and test stuff via command line and whenever I use timers this error appears. While the main window has been closed some part of the program is still running so that I have to close it manually via Ctrl+C. I am not sure whether this bug only appears on Linux.
You must be logged in to reply to this topic.
Monkey2 is an easy to use, cross platform, games oriented programming language from Blitz Research.