TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Craig Swanson
from: Phil Crown
date: 1995-10-25 18:41:08
subject: _beginthread too fast

-=> Quoting Craig Swanson to Phil Crown <=- 

 PC> APAR= PJ16508
 PC>  DOSCONNECTNPIPE() FAILS ON A FAST SYSTEM WITHOUT A DOSSLEEP.
 
 CS> Overall, I'd have to say that named pipes in OS/2 2.x and 3.0 are
 CS> buggy and apparently have a reputation within IBM of being a mess
 CS> nobody wants to touch -- maybe because they have stuck around since
 CS> OS/2 1.x (yes, it's still 16-bit code!) and may have originally been
 CS> written by Microsoft.  For example,recently I've again had problems

I haven't used named pipes much, except for debugging.

 CS> From this, it looks like you get a TID that is not 0xFFFF, but the
 CS> thread doesn't start.  How are you determining if the thread is or is
 CS> not starting? Can you write something to stdout (or to a file) at the
 CS> start of the thread and see if this shows up?  Maybe the thread has
 CS> started and has gotten stuck or screwed up somehow?

My problem with _beginthread() not starting was that I was assuming that it
had retunred before it may actually have, or something like that.

Calling WinSendMsg instead of WinPostMsg fixed that. :-)

phil.crown{at}bluecafe.com

--- Blue Wave/Max v2.21a Beta
* Origin: * MacSavvy * Dallas * Mac * OS/2 * (214)250-4479 * (1:124/1208)
SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 124/1208 1 396/1 270/101 712/515 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™.