1) I have created the COM assembly and added a reference to Interop DLL.
For example:
I have added IStreaming interface to idl file and generated a Streaming.tlb file. I created Interop.Streami ng.dll using tlbimp command. IStreaming interface has one method StrartStreaming to recieve a data from a server
2) I added a reference to Interop.Streami ng.dll in C# assembly project and implemented the IStreaming interface.
3) I developed C++ client to create the instance of the class which implements IStreaming interface. Client calls StartStreaming( ).
4) When StartStreaming( ) is called I am creating a new thread as shown follows
Actually the problem is when srverThread.Sta rt()is called thread is not starting and DoRecieve function is not called all. Above class is in a Class Assembly and added Interop.Streami ng.dll as an reference. I have to start the thread and come back from the function StartStreaming( ) without blocking
Please help me. I don't know what mistake I am doing Or what needs to be configured to start the thread inside the class assembly.
Please help me to solve the above problem.
For example:
I have added IStreaming interface to idl file and generated a Streaming.tlb file. I created Interop.Streami ng.dll using tlbimp command. IStreaming interface has one method StrartStreaming to recieve a data from a server
2) I added a reference to Interop.Streami ng.dll in C# assembly project and implemented the IStreaming interface.
3) I developed C++ client to create the instance of the class which implements IStreaming interface. Client calls StartStreaming( ).
4) When StartStreaming( ) is called I am creating a new thread as shown follows
Code:
class Streaming:IStreaming
{
public void DoRecieve()
{
}
public void StartStreaming()
{
Thread srverThread = new Thread(new ThreadStart(DoRecieve));
srverThread.Start();
}
}
Please help me. I don't know what mistake I am doing Or what needs to be configured to start the thread inside the class assembly.
Please help me to solve the above problem.