Article View: alt.msdos.programmer
Article #787Re: my_tsr
From: Fuzzy Fox
Date: Fri, 20 Nov 1992 22:45
Date: Fri, 20 Nov 1992 22:45
16 lines
1143 bytes
1143 bytes
vincent@datmuc.UUCP (vincent) writes: > data. tsrstack = malloc (1024); > data. tsrstack += 1024; // go to the top of it Are you sure that malloc'd memory stays part of your program? It seems to me that when your program terminates, all heap memory will be free'd by the OS and the next program that loads in (such as COMMAND.COM) will load into the place where your stack used to be. You should probably use a static stack. -- #ifdef TRUE | Fuzzy Fox (a.k.a. David DeSimone) fuzzy@netcom.com #define TRUE 0 | #define FALSE 1 | "You have been recruited by the Star League to defend #endif | the Frontier against Xur and the Kodan Armada."
Technical Details
Message-ID:
<1992Nov20.224547.66@rei.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!rei2!foxReferences:
<smithbm.721597007@craft.camp.clarkson.edu> <1992Nov18.025048.16933@newsroom.utas.edu.au> <smithbm.722096804@craft.camp.clarkson.edu> <1353@datmuc.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!rei2!fox From: fox@rei.com (Fuzzy Fox) Subject: Re: my_tsr Message-ID: <1992Nov20.224547.66@rei.com> Date: Fri, 20 Nov 1992 22:45:47 GMT References: <smithbm.721597007@craft.camp.clarkson.edu> <1992Nov18.025048.16933@newsroom.utas.edu.au> <smithbm.722096804@craft.camp.clarkson.edu> <1353@datmuc.UUCP> Organization: Recognition Equipment, Inc. Lines: 16