It stucks on GetMessage() function on mainWindow procedure