Invalid cast exception

  • Thread starter Thread starter DBC User
  • Start date Start date
D

DBC User

Hi,

I have a 2 .net programs and I call one from another. The called
program abends with Runtime error. It didn't give any messages except
digging in detail. I found it has invalida cast exception. I put
try/catch in the program.cs and in the main form still my catch is not
executing.
Does any know how to trap this error?
Thanks.
 
DBC User,

Are you performing this work on another thread?

Did you set the ThreadException property on the Application class as
well?
 
Back
Top