Goto Project Properties and click on the compile tab. In there are a few options to change the way your exe is compiled. The default is fast code, adjust these settings and see if that helps.