Martin Spedding's Blog

Adventures in a disconnected world

Different CLR Exception behaviour on Windows 2000 and XP

I have been developing a .Net rich client application in C# for internal company use. My machine is running Windows 2000 and I am using Visual Studio 2003 for development I decided to use wizard control from Tim Dawson . I have created a form and placed the wizard control on the form. From the application I open the form containing the wizard using ShowDialog() and then close the form using this.close(). This works perfectly well on Windows 2000, but when I install the application on Windows XP, a CLR unexpected exception error occurs when you I try to close the wizard control form and I have to close the application. I changed the code to use this.dispose() but I still get the problem, again it works perfectly on Windows 2000 and fails with the same unexpected exception error on Windows XP.

I know the joke with Java is that it is a "Write Once test everywhere" solution. After this experience I am beginning to wonder if this is also true of .Net. I would expect there to be difference in behaviour between Windows 9x and Windows 2000/XP but I am surprised about there being a big difference between 2000 and XP.

I am curious if anyone can help me and explain the differences between the CLR exception handling on 2000 and XP , if there are any and areas where I should check. I have tried to google for for information but without much joy.

Comments

Yves Reynhout said:

These controls probably just wrap (or reuse) windows common controls, so this does not surprise me (as they will have changed from win2k to winXP).
# April 2, 2004 7:08 AM

Pawan Jain said:

Yes i m also getting some CLR errors. i m getting CLR Error 800700b i don't know what is that if u knowt then please let me know .

about ur problem there is one solution that u just right click on that exe and click on compatibility tab then change it to windows 2000 and then ok and now run I HAVE LITTLE CONFIDENT THAT IT WILL WORK.

PLEASE TELL ME ABOUT THE ERROR CLR 800700b IF U FIND ANYWHERE

OK BYE AND TAKE CARE
HAVE A NICE DAY
# May 27, 2004 2:27 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)