🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2735

Re: Dialogs + Threads = Problems. Help!

#2735
From: Larry Salomon Jr.
Date: Thu, 31 Dec 1992 15:14
21 lines
1317 bytes
In <92365.153701U37127@uicvm.uic.edu> <U37127@uicvm.uic.edu> writes:

>Hello all,

>  I have been having some weird PM problems that I was hoping someone could
>  shed some light on.  Basically the problem is that if I start a thread
>  from a dialog, and then from within the thread try to send messages to
>  the dialog items, or set DlgItemText, the calls fail.  I have not omitted
>  the all important step of getting a PM anchor block handle for each thread.

But you did omit the creation of a message queue for the other thread.  Also,
it is highly recommended that all threads but the one with the message loop
call WinCancelShutdown(); if anyone wants to know the specifics of why, send
me email.

Cheers,
Q
-- 
"If you choose not to decide, you  | "My other body is in the shop" - seen
 still have made a choice" - Rush  |  on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Dec31.151448.17833@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!rutgers!cmcl2!panix!os2man
References: <92365.153701U37127@uicvm.uic.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!concert!rutgers!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Newsgroups: comp.os.os2.programmer
Subject: Re: Dialogs + Threads = Problems. Help!
Message-ID: <1992Dec31.151448.17833@panix.com>
Date: 31 Dec 92 15:14:48 GMT
References: <92365.153701U37127@uicvm.uic.edu>
Organization: PANIX Public Access Unix, NYC
Lines: 21