Z
Zytan
I just got a TargetInvocationException from a WebBrowser control,
after calling
WebBrowser.Document.Write(text), which (internally) calls
System.Windows.Forms.HtmlDocument.Write(String text), which calls
System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument2.Write(Object[]
psarray), which threw ArgumentException, because an index was out of
range in a dictionary object. This was stuffed into a
TargetInvocationException as its InnerException.
So what can we do? WebBrowser seems completely unreliable.
Guess we have to catch all exceptions from it.
Zytan
after calling
WebBrowser.Document.Write(text), which (internally) calls
System.Windows.Forms.HtmlDocument.Write(String text), which calls
System.Windows.Forms.UnsafeNativeMethods.IHTMLDocument2.Write(Object[]
psarray), which threw ArgumentException, because an index was out of
range in a dictionary object. This was stuffed into a
TargetInvocationException as its InnerException.
So what can we do? WebBrowser seems completely unreliable.
Guess we have to catch all exceptions from it.
Zytan