TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mark Birenbaum
from: Darin McBride
date: 1997-01-04 10:41:16
subject: waiting for keyboard input

hl> secondary threads.  Like: you are using Borland C 
 hl> without the threads bugfix?
 MB>      Nope, I'm using VisualAge.  Is it possible I've 
 MB> set the stack too small (I'm creating them with 
 MB> DosBeginThread, and I'm providing stacks of 8k)

Don't use DosBeginThread.  Use _beginthread() or whatever is in your
runtime library to do this.  Why?  Because the one in the CRTL will
initialize the CRTL on the new thread before giving your function control
of the thread, allowing you to call other CRTL functions.  (If you are only
going to do stuff without calling the CRTL, such as call various OS/2 APIs
you can get away with DosCreateThread, but you may as well still use the
almost-standard _beginthread().)


--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)
SEEN-BY: 50/99 54/99 270/101 620/243 625/0 160 711/409 410 413 430 808 809
SEEN-BY: 711/934 955 712/311 407 505 506 517 623 624 704 841 713/317 800/1
@PATH: 342/5015 61 3615/50 396/1 270/101 712/624 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™.