C# app runs in Windows 7, but not in Windows XP

前端 未结 4 1336
春和景丽
春和景丽 2021-01-15 03:58

I have created an application in VS C# Express 2008 using Windows 7 as my OS. It runs perfectly fine on other W7 machines, but when we try and deploy it on a machine with XP

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-15 04:15

    You should set up an UnhandledExceptionEventHandler so that you can log information about the current state of your application and the exception information. It isn't going to stop your application from crashing, but it will give you more information about what happened and make it easier on your end user to give you what you need to know when the application crashes.

    This article give a good description of how to do that.

提交回复
热议问题