Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.paradox    |    To crash or not to crash, asks Borland    |    9,834 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,102 of 9,834    |
|    Sundial Services to Sundial Services    |
|    Re: Why the delay to close()...?    |
|    06 Mar 08 22:31:33    |
      From: info@sundialservices.com              Sundial Services wrote:       >"Little old sleep()" causes the Windows message queue to be       > emptied, and by specifying an insignificant number of milliseconds' delay,       > we assure that the Paradox process gets re-dispatched.              I guess I should clarify that ...              "sleep()" by-itself will loop until the Windows message-queue at that       particular moment in time is empty. All of the subroutine-calls that might       magically occur within the Windows system for all of the then-pending       messages will therefore occur, but there's still a lot of "variability"       that would still remain .. a large number of "well, it happened once but I       can't make it happen again" cases, yet to be debugged.              By introducing a delay, even 10/1000 of a second, you force Paradox       to "yield" to Windows. Before the Paradox program will start running on       your computer-system again, Windows will have been given an /explicit/       opportunity to "really, once-and-for-all" dispose of any and all "pending"       work that might yet remain to be attended to. In other words, if that form       is "halfway in the middle of becoming 'open,'" by the time this       inconsequential "delay" is finished, the form will most-likely now be "all       the way, really-and-for-true 'open.'"              Many precious hair-follicles might thereby be saved. :-D              ----       ChimneySweep(R): Fast(!) table repair at a click of the mouse!       http://www.sundialservices.com              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca