I have a dll file which I use elsewhere, but in the dll file, I have a class which needs to be updated very frequently by a function inside it. Then I wanted to just create a loop that executes the function every pass. But even so, it pauses the thread which uses the dll, because it is caught in the loop(waiting for it to be over). So therefore, my program freezes.
So, how can I create this loop without freezing my thread.
PS. I have though and tried to use a Timer(.net), but I really want to exclude managed code.