Re: Multitasking Preview Release

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rob, 

Will this handle the following (in Windows):

* Routine "a" is executed when a user clicks a button
* "a" starts task "b"
* task "b" calls a routine in a .DLL that extracts information from another
computer.  Sometimes the answer comes back quickly and sometimes the answer comes
back in minutes (i.e. SQL query).  For this example, let's say 5 minutes.
* user can't wait for answer and wants to cancel the query.  I add a button to
the window that lets the user cancel the query.  User clicks button and I use
task_kill() against task "b".

Since task "b" is still waiting for the routine in the DLL to return, would taks
"b" be cancelled immediately or when the DLL returns control to task "b"?

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu