"Memory Access Violation" is a generic error message which you tend to get only in "Release" mode, not "Debug". Pretty much any error in a compiled exe will throw a MAV.
Switch Debug on and you'll get a more meaningful error message.
Switch Debug on and you'll get a more meaningful error message.