🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2631

Re: Multi-threaded appl & printf

#2631
From: Alan Ballard
Date: Thu, 16 May 1991 18:37
16 lines
1314 bytes
In article <1991May16.153241.11420@grasp1.univ-lyon1.fr> wolf@grasp1.univ-lyon1.fr (Christophe Wolfhugel) writes:
>Is following correct (OS/2 1.2EE / IBM C/2 1.1):
>
>The main thread of an application creates a second thread (with
>DosCreateThread) that uses printf to display some text. The .obj
>file is linked to llibcmt & doscalls.

Hard to know without seeing the source.  Are you sure you are setting 
up the stack for DosCreateThread correctly?  Are you compiling with the 
right memory model for llibcmt? 

-- 
Alan Ballard                   | Internet: ballard@ucs.ubc.ca
University Computing Services  |   Bitnet: USERAB1@UBCMTSG
University of British Columbia |    Phone: 604-822-3074
Vancouver B.C. Canada V6R 1Z2  |      Fax: 604-822-5116
Technical Details
Message-ID: <1991May16.183737.5877@unixg.ubc.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!ballard
References: <1991May16.153241.11420@grasp1.univ-lyon1.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!ballard
From: ballard@ucs.ubc.ca (Alan Ballard)
Newsgroups: comp.os.os2.programmer
Subject: Re: Multi-threaded appl & printf
Message-ID: <1991May16.183737.5877@unixg.ubc.ca>
Date: 16 May 91 18:37:37 GMT
References: <1991May16.153241.11420@grasp1.univ-lyon1.fr>
Sender: news@unixg.ubc.ca (Usenet News Maintenance)
Organization: University of B.C. Computing Services
Lines: 16
Nntp-Posting-Host: swiss.ucs.ubc.ca