This is due to hardware data execution prevention in Windows. You can turn it off for csi.exe and for any programs you compile that use IUP. To turn if off go to Computer->Advanced System Settings->Data Execution Prevention