S
Steve B.
Hi,
I've followed this howto :
http://msdn2.microsoft.com/en-us/library/ms227433.aspx in order to publish
images from a DB.
This is working correctly, but if an exception occured in the
StartAsyncTask, the whole w3wp.exe process hangs, and Dr Watson fires.
How can I correctly handle exceptions in the StartAsyncTask ?
private void StartAsyncTask(Object workItemState)
{
DoSomethingThatCanFail();
// if failure, the thread does not seems to callback
// the mail thread.. How can I "return" the exception ?
_completed = true;
_callback(this);
}
Thanks in advance,
Steve
I've followed this howto :
http://msdn2.microsoft.com/en-us/library/ms227433.aspx in order to publish
images from a DB.
This is working correctly, but if an exception occured in the
StartAsyncTask, the whole w3wp.exe process hangs, and Dr Watson fires.
How can I correctly handle exceptions in the StartAsyncTask ?
private void StartAsyncTask(Object workItemState)
{
DoSomethingThatCanFail();
// if failure, the thread does not seems to callback
// the mail thread.. How can I "return" the exception ?
_completed = true;
_callback(this);
}
Thanks in advance,
Steve