Max crashes after a while!

BlitzMax Forums/BlitzMax Programming/Max crashes after a while!

When you get to the end of frame, two frames after having flipped the display and processed the relevant events, just wipe out the remaining old queue'd events by using peekevent and pollevent until the peekevent=null. ?