how can I keep a program running ...

BlitzMax Forums/BlitzMax Programming/how can I keep a program running ...

If PollEvent()
Select EventID()
...
End Select
endif


Use PollEvent(), not WaitEvent().