| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | WinCancelShutdown |
ZZ> > It would seem to make a whole lot more sense to just post a WM_QUIT to > every thread that has a message queue and not worry about it. I wonder > why this is not done? Or maybe it is done and what I have read is not > true. ZZ> As far as I can see, both from the documentation of WinCancelShutdown in the PM Reference, and from other sources, every message queue is sent a WM_QUIT at shutdown time. Personally, I dislike making background threads into message loop threads. I give them message queues, yes, to allow WinSendMsg to operate, but I believe it best to have just the one message loop, in the main thread. ZZ> > multi-threaded PM apps could be in potential danger of having their > programs hang up on exit. ZZ> Which is why the recommendation is never to disable WM_QUIT on the message queue used in the message loop for your main thread. > JdeBP < ___ X MegaMail 2.10 #0: --- Maximus/2 2.02* Origin: DoNoR/2,Woking UK (01483-725167) (2:440/4) 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: 440/4 141/209 270/101 396/1 3615/50 229/2 12/2442 711/409 54/54 @PATH: 711/808 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™.