Re: To Insolor and those interested in dos rescue programme

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

Hello, Selgor. As far as I recall, dos rescue already has a similar demo prog "rescued" from the Eu 3.1.1 package, though without mouse event handling. Anyway I will try it in a few days and write what I think about it.

Now, the only comment. There must be task_yield() inside the empty for-loop:

for i = 1 to 3750000 do
    task_yield() 
end for 

because DOS can interrupt the program execution in order to handle some events like key presses or mouse clicks, while the dos rescue can't (for the current implementation). So a program must yield the execution to the event handling loop, except in loops with dos_rescue:get_key() or get_mouse() calls (because they do task_yield() itself).

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

Search



Quick Links

User menu

Not signed in.

Misc Menu