I am using C# 2005 Express edition. My application runs fine but on closing I get the following message (for some reason I can't take a screenshot of the dialog)
The exception breakpoint
A breakpoint has been reached
(0x80000003) occurred in the application at location 0x7c90130
This happens in the debug version and release version.
My first reaction was that I had left a breakpoint in the program, my second that it is related to the debug version. I am new to C#2005 and could not find any swicth to change the build type from debug to release so don't know if calling for a Build automatically created a Build version.
I would like to get rid of it since it would be annoying for my users
Thanks in advance

Exception Breakpoint on Application Termination
Alex Merchant
arkiboys
System.Diagnostics.Debugger.Break();
Kirill Tropin
Joe Au
Dvlnblk
ennisb
Well, you beat me. I was just about to write that, in my C++ days, I would get that error when I failed to destroy a COM object before shut down.
yanivpinhas
BioGeek
Anarchy
Your best bet is to place a breakpoint, you may have to divide and conquer, before finding the offending area, but that will give you a clue to what is going on and to remedy it.