Link to home
Create AccountLog in
Avatar of dchau12
dchau12

asked on

error handling for a BackGround worker object

Does anyone know how to handle exceptions inside of a  a BackgroundWorker object?
ASKER CERTIFIED SOLUTION
Avatar of williamcampbell
williamcampbell
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of dchau12
dchau12

ASKER

OK, in my DoWork_ function, I create a divide by zero error.  I know that I shouldn't use try catch blocks in the DoWork_ function.  I should just let the exception bubble up to the RunWorkerCompleted function.  But, how do I handle the exception from there?  I cant seem to use try catch blocks there either, so how do i handle my error???