private void HandleThumbnailerError(IPage page, Exception error)
{
if (InvokeRequired)
{
Invoke(new Action<IPage, Exception>(HandleThumbnailerError), page, error);
return;
}
#if DEBUG
//NOTE!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//Javascript errors in the *editable* page (the one on screen) can show up here. Bizarre... haven't figured out how/why. Maybe due to calling application.doevents()
//in the thumbnail generator. Symptom is that even passing a blank html file to the thumbnailer still gives javascript errors here, but taking the javascript out of
//the editable page (in Book.GetEditableHtmlDomForPage() ) fixes it.
//Note, even though you'll get the error once for everythumbnail, don't let that fool you.
Debug.Fail("Debug only" + error.Message);
#endif
RefreshOneThumbnailCallback(page, Resources.Error70x70);
}