home *** CD-ROM | disk | FTP | other *** search
- Path: 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
-
- 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
- ------------------------------------------------------------------------
-