| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | WinCancelShutdown |
DR>
> As far as how many threads get WM_QUITs, only one does. I have read
> that this thread is picked kind of at random so you need to call
> WinCancelShutdown() with the second parm TRUE for all of the threads
> who don't want to every get the WM_QUIT. But that does not seem true
> for the reasons mentioned above.
DR>
Is it possible that one of your threads gets a WM_QUIT, then closes the app
before the other threads get a chance to read their queues?
JdBP> WinSendMsg() is another very poorly documented call. The
You are correct - the destination thread only processes the message when it
next looks at its queue. If it is in the middle of processing one message
when you WinSendMsg another to it, your sent message will sit waiting for
the destination thread to get the next message. (WinPeekMsg/WinGetMsg).
Interestingly, the source thread is *not* blocked waiting for a reply! For
example, it is perfectly legitimate for the second thread to send a message
back to the first while processing a message sent *from* the first!
Cheers, Graham Perks
perks{at}ibm.net
--- Maximus/2 2.02
* Origin: PC Emporium BBS (1:369/5)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 369/5 92 74 32 135/459 94 3615/50 229/2 12/2442 711/409 54/54 711/808 @PATH: 711/809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.