| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | gethostbyname() from a secondary th |
Hello Phil! 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 Unfortuanatly (or fortuanatly ) I don't have Borland/2 so I don't know the commandline, however, your're generally not supposed to define __MT__ yourself. There should be a switch to turn on multithreaded mode. 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 One way to "properly" solve this bug is to roll your own _beginthread(). Check your docs, runtime source code, or decompile the _beginthread() to find out the few functions it's calling to initialize the environment. Then just use DosCreateThread(). Doug --- GoldED/2 2.50+* Origin: Realm of the Dragons - `Where thy mind hath no limits' (1:250/516) 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: 250/516 101 99 3615/50 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™.