home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / os2 / programm / 7258 < prev    next >
Encoding:
Internet Message Format  |  1992-12-31  |  1.3 KB

  1. Path: sparky!uunet!gatech!concert!rutgers!cmcl2!panix!os2man
  2. From: os2man@panix.com (Larry Salomon Jr.)
  3. Newsgroups: comp.os.os2.programmer
  4. Subject: Re: Dialogs + Threads = Problems. Help!
  5. Message-ID: <1992Dec31.151448.17833@panix.com>
  6. Date: 31 Dec 92 15:14:48 GMT
  7. References: <92365.153701U37127@uicvm.uic.edu>
  8. Organization: PANIX Public Access Unix, NYC
  9. Lines: 21
  10.  
  11. In <92365.153701U37127@uicvm.uic.edu> <U37127@uicvm.uic.edu> writes:
  12.  
  13. >Hello all,
  14.  
  15. >  I have been having some weird PM problems that I was hoping someone could
  16. >  shed some light on.  Basically the problem is that if I start a thread
  17. >  from a dialog, and then from within the thread try to send messages to
  18. >  the dialog items, or set DlgItemText, the calls fail.  I have not omitted
  19. >  the all important step of getting a PM anchor block handle for each thread.
  20.  
  21. But you did omit the creation of a message queue for the other thread.  Also,
  22. it is highly recommended that all threads but the one with the message loop
  23. call WinCancelShutdown(); if anyone wants to know the specifics of why, send
  24. me email.
  25.  
  26. Cheers,
  27. Q
  28. -- 
  29. "If you choose not to decide, you  | "My other body is in the shop" - seen
  30.  still have made a choice" - Rush  |  on a T-shirt
  31. ------------------------------------------------------------------------
  32.