Console App crash before first run statement