title: OpenGL program immediately closes at runtime
body: <p>I'm running an OpenGL tutorial program using Visual Studio 10 and have seen it work on other machines but closes straight after running on mine. A small blank image display window pops up for a split second before it goes back to the code as if everything went smoothly.</p>
  
  <p>Here is the output I'm getting:</p>
  
  <pre><code>'Tutorials.exe': Loaded 'C:\Users\Nathan\Documents\Visual Studio 2010\Projects\Tutorials\Debug\Tutorials.exe', Symbols loaded.
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Program Files\AVAST Software\Avast\snxhk.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Users\Nathan\Documents\Visual Studio 2010\Projects\Tutorials\Debug\glew32.dll', Binary was not built with debug information.
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\opengl32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\msvcrt.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\advapi32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\sechost.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\rpcrt4.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\sspicli.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\cryptbase.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\gdi32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\user32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\lpk.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\usp10.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\glu32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\ddraw.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\dciman32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\setupapi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\cfgmgr32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\oleaut32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\ole32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\devobj.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\dwmapi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Users\Nathan\Documents\Visual Studio 2010\Projects\Tutorials\Debug\freeglut.dll', Binary was not built with debug information.
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\winmm.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\msvcp100d.dll', Symbols loaded.
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\imm32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\msctf.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\uxtheme.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\HsSrv.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\dsound.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\powrprof.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\version.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\atiglpxx.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\atioglxx.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\atiadlxy.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\shell32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\shlwapi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\propsys.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\userenv.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\profapi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\wtsapi32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\psapi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\ws2_32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\nsi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\winnsi.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\wintrust.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\crypt32.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\msasn1.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\atigktxx.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\aticfx32.dll', Cannot find or open the PDB file
  Invalid parameter passed to C runtime function.
  Invalid parameter passed to C runtime function.
  Invalid parameter passed to C runtime function.
  Invalid parameter passed to C runtime function.
  'Tutorials.exe': Unloaded 'C:\Windows\SysWOW64\atigktxx.dll'
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\atigktxx.dll', Cannot find or open the PDB file
  'Tutorials.exe': Loaded 'C:\Windows\SysWOW64\clbcatq.dll', Cannot find or open the PDB file
  The thread 'Win32 Thread' (0xaf0) has exited with code 1 (0x1).
  The program '[6208] Tutorials.exe: Native' has exited with code 1 (0x1).
  </code></pre>
  
  <p>I'm not great with this kind of stuff so hopefully someone here can make sense of this.</p>