是这样的,我用VS2012在Win8 X64下用.Net3.5开发了一个程序在XP下秒退
之后我换到XP下分别用VS2010、VS2008编译这个项目(没有重新写,只是把sln文件内的版本号降低了然后直接用低版本打开),在这个XP下可以正常运行,
但是在其他XP下依旧秒退,.Net2.0/3.5/4都试过,都不行

其他测试的XP也都装有.Net 3.5 SP1和4.0。
请问是什么问题?秒退是说运行后任务管理器中出现此进程但很快(不超过2秒)就退出了,程序界面不显示

解决方案 »

  1.   

    http://www.google.com.hk/search?newwindow=1&safe=strict&hl=zh-CN&q=Application.ThreadException&btnG=Google+%E6%90%9C%E7%B4%A2
      

  2.   

    根据你的目标平台不同可能稍有不同,例如https://www.google.com.hk/search?q=DispatcherUnhandledExceptionEventHandler&aq=f&oq=DispatcherUnhandledExceptionEventHandler&aqs=chrome.0.57j0l3.775j0&sourceid=chrome&ie=UTF-8
      

  3.   

    根据msdn上关于.NET Framework 3.5 的系统要求
    看看你的系统是不是包含在内。。方案
    目标平台
    基于 32 位的系统
    带 SP2 的 Windows XP Professional
    带 SP2 的 Windows XP Home Edition
    带 SP2 的 Windows XP Media Center Edition 2002
    带 SP2 的 Windows XP Media Center Edition 2004
    Windows XP Media Center Edition 2005
    带 SP2 的 Windows XP Professional Reduced Media Edition
    带 SP2 的 Windows XP Home Reduced Media Edition
    带 SP2 的 Windows XP Tablet PC Edition
    Windows XP Starter Edition
    Windows Server 2003 Standard Edition
    Windows Server 2003 Enterprise Edition
    Windows Server 2003 Datacenter Edition
    Windows Server 2003 Web Edition
    Windows Small Business Server 2003 Standard Edition
    Windows Small Business Server 2003 Premium Edition
    Windows Server 2003 R2 Standard Edition
    Windows Server 2003 R2 Enterprise Edition
    Windows Server 2003 R2 Datacenter Edition
    Windows Vista Starter
    Windows Vista Home Basic
    Windows Vista Home Premium
    Windows Vista Ultimate
    Windows Vista Business
    Windows Server 2008 Standard 32 位
    Windows Server 2008 Enterprise 32 位
    Windows Server 2008 Datacenter 32 位
    基于 x64 位的系统
    Windows XP Professional x64 Edition
    Windows Server 2003 Standard x64 Edition
    Windows Server 2003 Enterprise x64 Edition
    Windows Server 2003 Datacenter x64 Edition
    Windows Server 2003 R2 Standard x64 Edition
    Windows Server 2003 R2 Enterprise x64 Edition
    Windows Server 2003 R2 Datacenter x64 Edition
    Windows Vista Home Premium x64 Edition
    Windows Vista Ultimate x64 Edition
    Windows Vista Business x64 Edition
    Windows Server 2008 Standard x64 Edition
    Windows Server 2008 Enterprise x64 Edition
    Windows Server 2008 Datacenter x64 Edition
    说明:  
    .NET Framework 支持 WOW64(在 64 位计算机上进行 32 位处理)和本机 64 位处理。 
      

  4.   


    这个里面的东西看不出来和我的有啥关系啊…………
    意思是让你捕获未处理异常。
    Net Winform有着自己的未处理异常机制。 Winform内部的代码会在Applicatin.Run方法里面为消息循环创建一个大的try...catch。这样, 任何在GUI主线程里面的异常都会被这个try...catch所捕捉到,这个默认的未处理异常handler会提取异常的所有信息然后显示在一个错误对话框里面,接着程序就中止了。这样我的try...catch就没有作用了。
    网页:http://blog.163.com/ma_yikai/blog/static/19194618620118801752631/
      

  5.   

    问题解决、怪我
    我想着和第三方控件没关系呢
    原来是我忘了把第三方控件dll和程序放一起拷出来运行了