Hi,
We have an app which uses an AsyncCallback method to handle the return
from a COM call.
In this callback, if we try to do anything with a WebBrowser control,
we get the following exception:
"InvalidCastExc eption was unhandled
Specified cast is not valid"
If we remove all code which tries to access the WebBrowser, the
exception doesn't occur.
Has anyone got any idea why this would happen? We can access any
other controls in our app and no exception is thrown.
Any help much appreciated.
Artie
We have an app which uses an AsyncCallback method to handle the return
from a COM call.
In this callback, if we try to do anything with a WebBrowser control,
we get the following exception:
"InvalidCastExc eption was unhandled
Specified cast is not valid"
If we remove all code which tries to access the WebBrowser, the
exception doesn't occur.
Has anyone got any idea why this would happen? We can access any
other controls in our app and no exception is thrown.
Any help much appreciated.
Artie
Comment