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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top