running thread created inside a dll in C# console application

Oct 29 2006 4:39 PM
Hi,

      I am working on a camera application project. I made a dll file which has all functions buit-in so that it can be imported.

I have a method named grab which starts a thread. the thread shows the video grabbing on the windows form and NI-IMAQ viewer for specified duration. I imported the dll in another windows application and it runs fine. When I import the dll in C# console application, the grab method is getting returned, but the thread created and started in the grab method is not running in the back ground.

I also tried with STAThread, but no result. But when I put a message box at the end of the grab method, the methos is not getting returned because of message box and every thing is running fine. I dont want any message box or user prompt. Please give your suggestions

VGK