errors are:-
'latch-c++.exe': Loaded 'D:\latch-c++\Debug\latch-c++.exe', Symbols loaded.
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\mscoree.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\advapi32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\rpcrt4.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\secur32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\msvcr100d.dll', Symbols loaded.
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\msvcp100d.dll', Symbols loaded.
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\shlwapi.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\gdi32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\user32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\msvcrt.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\imm32.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clr.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\msvcr100_clr0400.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Culture.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\mscorlib\1a275c96b17001a1c2ddf29c5fd0c7fd\mscorlib.ni.dll', No native symbols in symbol file.
'latch-c++.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll', Symbols loaded.
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\nlssorting.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\ole32.dll', Symbols loaded (source information stripped).
'latch-c++.exe' (Managed (v4.0.30319)): Loaded 'D:\latch-c++\Debug\latch-c++.exe', Symbols loaded.
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\clrjit.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\diasymreader.dll', Symbols loaded (source information stripped).
'latch-c++.exe': Loaded 'C:\WINDOWS\assembly\NativeImages_v4.0.30319_32\System\2aa74f395dcc166aa65fb8e72aae7475\System.ni.dll', No native symbols in symbol file.
'latch-c++.exe' (Managed (v4.0.30319)): Loaded 'C:\WINDOWS\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll', Symbols loaded.
First-chance exception at 0x00000000 in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
A first chance exception of type 'System.AccessViolationException' occurred in latch-c++.exe
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
First-chance exception at 0x791659f0 (clr.dll) in latch-c++.exe: 0xC0000005: Access violation reading location 0x00000000.
'latch-c++.exe': Loaded 'C:\WINDOWS\system32\version.dll', Symbols loaded (source information stripped).
An unhandled exception of type 'System.AccessViolationException' occurred in latch-c++.exe
Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
The thread 'Win32 Thread' (0x1720) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x9bc) has exited with code 0 (0x0).
The thread 'Win32 Thread' (0x8b4) has exited with code 0 (0x0).
The program '[3728] latch-c++.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
The program '[3728] latch-c++.exe: Native' has exited with code 0 (0x0).