Discussion:
Entering timer for long process
(too old to reply)
Sony Kalkan
2007-06-29 06:11:58 UTC
Permalink
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.
c***@gmail.com
2007-08-16 09:04:00 UTC
Permalink
Post by Sony Kalkan
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.
Call your dll function in a thread

Loading...