Question : First chance exception

I recieve this error message when trying to run a program that is split into a server part and a client part. The client connects to an object at the server and at the first call to the object at the server I get this error message:
"A first chance exception of type 'System.InvalidOperationException' occurred in system.dll

Additional information: The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly."

After I've got this error message the connection is working so there does not seam to a fatal error.

My question is what a "first chance exception" is.

Answer : First chance exception

It is the first specialized exception that can be caught.

For example you should catch the DividedByZeroException before you catch the normal Exception.

Regards,
CJ
Random Solutions  
 
programming4us programming4us