Activex Failing when launching using thread

S

Shahzad Godil

I have one remoting server which is launch Visio activex based application
on remote request.

I have this code to launch my application. But it is giving "Class Not
registered" error in InitializeComponent of form which has ActiveX control.
My application is working perfectly when I am launching this without any
thread.

I also tried Appartment.STA to MTA but it is also failing because activex
control doesnt support mta.


Please suggest.

Thanks
Shahzad Godil

Public Sub LaunchThread()

' Create a thread. Then run the LaunchForm method on the thread.

Dim MyThread As System.Threading.Thread

MyThread = New System.Threading.Thread(AddressOf LaunchForm)

MyThread.ApartmentState = Threading.ApartmentState.STA

MyThread.Start()

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top