Article View: comp.os.msdos.programmer
Article #1275Re: New and farcoreleft()
From: Mark Wright
Date: Fri, 04 Sep 1992 05:10
Date: Fri, 04 Sep 1992 05:10
28 lines
2024 bytes
2024 bytes
In article <HOLLEN.92Sep3114500@peg.megatek.UUCP> hollen@megatek.UUCP (Dion Hollenbeck) writes:
>In article <1992Sep3.134102.17553@news2.cis.umn.edu>
>wright@epx.cis.umn.edu (Mark Wright) writes:
>
>Mark> In a C++ program I've been writing, strategically placed
>Mark> farcoreleft()'s seem to be saying that my objects are not being
>Mark> de-allocated correctly when I 'destroy' them. Should I worry about
>Mark> this, or is farcoreleft() designed for use with malloc()? If so,
>Mark> is there a C++ function which will tell me how much mem. I have
>Mark> left? I'm using Borland C++ v3.1.
>
>Yes it is designed for use with malloc(). It is probably working
>correctly, you probably do not know how it is working.
[...]
>--
>Dion Hollenbeck UUCP: {uunet, ucsd, sun}!megatek!hollen
> INTERNET: hollen@megatek.com
>Megatek Corporation 9645 Scranton Rd. San Diego, Ca. 92121
I don't think I stated my problem very clearly. My concern is that allocating
space with 'new' may confuse farcoreleft(). I know that combining C style
memory allocation routines (ie. malloc()) and C++ memory allocation routines
(ie. new) will cause problems - I guess what I want to know is 'Is
farcorleft() C++ aware?' Does farcoreleft() know about 'new', or is it
specifically a C function. And if so, is there a C++ version of farcoreleft()?
Mark Wright
wright@epx.cis.umn.edu
Technical Details
Message-ID:
<1992Sep4.051057.26963@news2.cis.umn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!epx.cis.umn.edu!wrightReferences:
<1992Sep3.134102.17553@news2.cis.umn.edu> <HOLLEN.92Sep3114500@peg.megatek.UUCP>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!epx.cis.umn.edu!wright From: wright@epx.cis.umn.edu (Mark Wright) Subject: Re: New and farcoreleft() Message-ID: <1992Sep4.051057.26963@news2.cis.umn.edu> Sender: news@news2.cis.umn.edu (Usenet News Administration) Nntp-Posting-Host: epx.cis.umn.edu Organization: University of Minnesota References: <1992Sep3.134102.17553@news2.cis.umn.edu> <HOLLEN.92Sep3114500@peg.megatek.UUCP> Date: Fri, 4 Sep 1992 05:10:57 GMT Lines: 28