> I reckon you might be having some threading issues. Try putting all
> your calls in a try catch block and see if you get any exceptions.
>Hi Andy, this the error detail
>
[quoted text clipped - 16 lines]
>
>Each block has a try and cach exception.
Without seeing the code, its hard to know what you are doing.
You need to remmeber that the active x control will run on a seperate
thread, and to allow access to the winform thread you need to provide
some kind of thread safe access, typically through invoke.
CAn you get access to VS2003? I beleive the cross threading stuff was
less strictly enforced in 2003.
Willy Denoyette [MVP] - 19 May 2006 14:57 GMT
| >Hi Andy, this the error detail
| >
[quoted text clipped - 22 lines]
| thread, and to allow access to the winform thread you need to provide
| some kind of thread safe access, typically through invoke.
Hold on, ActiveX controls must be marked as ThreadingModel= Apartment in the
registry, that is they must run in a STA, assumed that the Form runs in an
STA, the Control also runs in the same STA (same thread).
To the OP, check your controls' apartment requirements.
Willy.