我用VC编写界面程序,用在安装触摸屏的嵌入式计算机上,调试时出现“First-chance exception in MyTest1.exe (GDI32.DLL): 0xC0000005: Access Violation.”错误信息,请问这是什么异常,什么原因造成的?还有线程返回码-1,1,2分别代码什么含义?

解决方案 »

  1.   

    For VC++ 6.0:-Start debugging your program.
    -Go to Debug | Exceptions...
    -Choose "e06d7363 Microsoft C++ Exception" from the bottom of the "Exceptions" list.
    -Choose "Stop always"
    -Click "Change"
    -Click "OK"Now your debugger will stop when it encounters a first-chance C++ exception, and you can examine the call stack, etc, and investigate. (You may need to restart the debugging session, if the exception has taken place before you get this setting changed.)
      

  2.   

    http://support.microsoft.com/kb/233390/en-us