Entering timer for long process



I am using a dll function which lasts long. I cannot modify its code.
I want to call this function without hanging my application. While
calling it, how can I interrupt it in intervals (like timer component)
so that i will do
application.processmessages in these intervals to prevent my form
hanging and respond events (such as closing, buttonclick etc)
Note: If I use timer component, the timer waits until the process
finishes and then enter its event.

Regards,

Sony Kalkan.

.


Quantcast