Crash also occurs when int[] a; a.length = 10; So, it's maybe something wrong with ms c runtime of VS 2012. Just installed Update 2 for VS 2012, not helps.