TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Doug Nazar
from: Phil Crown
date: 1996-07-20 12:40:58
subject: gethostbyname() from a secondary th

-=> Quoting Doug Nazar to Phil Crown <=- 

 DN> Hello Phil!

 DN> Thursday July 18 1996 01:00, Phil Crown wrote to All:
 
 PC> // Borland
 PC> // bcc -D__MT__ -w thread.cpp c2mt.lib so32dll.lib tcp32dll.lib

 DN> Unfortuanatly (or fortuanatly ) I don't have Borland/2 so I don't
 DN> know the commandline, however, your're generally not supposed to
 DN> define __MT__ yourself. There should be a switch to turn on
 DN> multithreaded mode.

I'll looke for the proper switch, I was in a hurry (and confused). :-)

 PC> #ifdef __BORLANDC__
 PC>   TID tid2 = _beginthread(thread2, 65535, (void *)NULL);
 PC> #elif defined __EMX__
 PC>   TID tid2 = _beginthread(thread2, NULL, 65535, (void *)NULL);
 PC> #endif

 DN> One way to "properly" solve this bug is to roll your own
 DN> _beginthread(). Check your docs, runtime source code, or decompile the
 DN> _beginthread() to find out the few functions it's calling to
 DN> initialize the environment. Then just use DosCreateThread(). 

I found and installed the Borland stack probe fix patch.  All my
problems are gone (for now). :-)

Thanks!

Phil - Fido:  1:124/8014.0 | Internet:  phil.crown{at}bluecafe.com

--- Blue Wave/OS2 v2.30
* Origin: * MacSavvy OS/2 BBS * Dallas, Texas * 214-250-4479 * (1:124/1208)
SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1
@PATH: 124/1208 1 396/1 270/101 712/515 711/808 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™.