Program received signal SIGSEGV, Segmentation fault. 0x77c47742 in _libmsvcrt_a_iname ()