O
Olie
I have a little scinario and I was wondering if someone could point me
in the best direction for coding it.
I have a custom user control that plays a DVD and it starts another
thread that listens for events in the DVD such as chapter change or
position change. When the event occurs it Invokes a function in the
creatting thread to raise an event. This means that the user of the
control does not need to worry about the fact that the event originated
in another thread.
As I do not want any user code to completely kill my thread listening
for events, I put all event calls in an unfiltered catch block.
My problem is what do I do with the exceptrion now, I want to notify
the user of the control that an exception occured but I do not want to
kill my event listening thread (this is what would happen if I just
left the exception).
In the program I use the control I have a global exception handling
system but this never has a chance to handle the exception.
Any advice would be apreciated.
Olie
in the best direction for coding it.
I have a custom user control that plays a DVD and it starts another
thread that listens for events in the DVD such as chapter change or
position change. When the event occurs it Invokes a function in the
creatting thread to raise an event. This means that the user of the
control does not need to worry about the fact that the event originated
in another thread.
As I do not want any user code to completely kill my thread listening
for events, I put all event calls in an unfiltered catch block.
My problem is what do I do with the exceptrion now, I want to notify
the user of the control that an exception occured but I do not want to
kill my event listening thread (this is what would happen if I just
left the exception).
In the program I use the control I have a global exception handling
system but this never has a chance to handle the exception.
Any advice would be apreciated.
Olie