🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #672

Re: Turbo C 2.0 stdio re-entrancy

#672
From: Steve McCoole
Date: Sat, 09 Jun 1990 22:55
19 lines
1251 bytes
In article <8930@rice-chex.ai.mit.edu> mbeck@wheaties.ai.mit.edu (Mark Becker) writes:
>
>I'm trying to do two things at once... keeping a time-of-day clock
>running in the background and having the same program do some useful
>work in the foreground.
>
>I get the impression that trying to use the same stdio routines
>(printf et al) in background as foreground is getting me in trouble
>but am unsure of a workaround for this.
>

You can't use printf or any other routine that tries to malloc memory
while you are in a TSR.  This may well be at least part of your problem.

>Pointers would be appreciated.

No problem.

Steve McCoole | Applied Computing Devices | smm@acd.com / uunet!acd.com!smm
Technical Details
Message-ID: <1990Jun9.225513.26855@acd4.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!acd4!smm
References: <8930@rice-chex.ai.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!acd4!smm
From: smm@acd4.UUCP ( Steve McCoole       )
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Turbo C 2.0 stdio re-entrancy
Summary: Can't use alot of stdio routines in TSRs.
Keywords: interrupt driven output
Message-ID: <1990Jun9.225513.26855@acd4.UUCP>
Date: 9 Jun 90 22:55:13 GMT
References: <8930@rice-chex.ai.mit.edu>
Reply-To: smm@acd.com ( Steve McCoole       )
Organization: Applied Computing Devices, Inc., Terre Haute, IN
Lines: 19