Re: doEvents

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

On 1 Jan 2004, at 17:29, Rolf Schr=F6der wrote:

>=20
>=20
> Evan Marshall wrote:
> >=20
> >  From the Win32lib docs under "Events":
> >=20
> > proc]
> > doEvents (integer id)
> > Gives control back to windows until there are no pending events to proc=
ess.
> > Category: Events
>=20
> Is this really the truth? I thought, DoEvents() is necessary under Win3
> (a non preemtive multitasking system, but not under Win32, witch is a
> preemptive multitasking system.
> Do I misunderstand here something?=20=20

This is why i asked that sleep(0) be a valid command also, because 0 does=
=20
almost the same in regards to other programs running. Some of my apps=20
have hung the OS for minutes at a time without sleep(0) in some loops. All =
it=20
does is hand the thread back to the task scheduler for it to process other=
=20
apps doevents. It's a requirement in win3.x for a well behaved app.

Kat

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

Search



Quick Links

User menu

Not signed in.

Misc Menu