I have a c++ dll which handles socket communications. It has a function StartServer() which it exports. This function has a while loop which runs forever untill a variable has changed.
I am calling this dlls StartServer() function from a C# Windows application (By Pressing a button) and my problem is that as this function has a while loop, focus is never passed back to my C# app.
Is there a way I can call this function in the dll and still bring control back to my main c# app (It appears to freeze).
If you need more explanation just ask.