Path: 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 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