Re: Eu locking harddrives

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

>From: Juergen Luethje <j.lue at gmx.de>
>Subject: Re: Eu locking harddrives
>
>Rob wrote:
>
> > Kat wrote:
>
> >> contrary to popular opinion, windows uses sleep(0) to deal with msg que
> >> on other apps, it's not useless. Modify your misc.e to allow sleep(0).
> >
> > OK, I've adjusted misc.e so sleep(0) will actually call
> > the system sleep routine, rather than skipping it.
>
>Does this mean, that we then can and should call sleep(0) in the same
>situations, in which we would use Win32Lib's doEvents()?
>

  No, sleep is for long loops used in non-GUI applications. doEvents() 
processes windows messages, for the application. sleep() allows *other* 
applications to do stuff.

>TIA,
>Juergen
>

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

Search



Quick Links

User menu

Not signed in.

Misc Menu