while((Win32::GUI::DoEvents() != -1) { }