home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / msdos / programm / 9048 < prev    next >
Encoding:
Text File  |  1992-09-03  |  1.9 KB  |  41 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!epx.cis.umn.edu!wright
  3. From: wright@epx.cis.umn.edu (Mark Wright)
  4. Subject: Re: New and farcoreleft()
  5. Message-ID: <1992Sep4.051057.26963@news2.cis.umn.edu>
  6. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  7. Nntp-Posting-Host: epx.cis.umn.edu
  8. Organization: University of Minnesota
  9. References: <1992Sep3.134102.17553@news2.cis.umn.edu> <HOLLEN.92Sep3114500@peg.megatek.UUCP>
  10. Date: Fri, 4 Sep 1992 05:10:57 GMT
  11. Lines: 28
  12.  
  13. In article <HOLLEN.92Sep3114500@peg.megatek.UUCP> hollen@megatek.UUCP (Dion Hollenbeck) writes:
  14. >In article <1992Sep3.134102.17553@news2.cis.umn.edu>
  15. >wright@epx.cis.umn.edu (Mark Wright) writes:
  16. >
  17. >Mark>      In a C++ program I've been writing, strategically placed
  18. >Mark>   farcoreleft()'s seem to be saying that my objects are not being
  19. >Mark>   de-allocated correctly when I 'destroy' them.  Should I worry about
  20. >Mark>   this, or is farcoreleft() designed for use with malloc()?  If so,
  21. >Mark>   is there a C++ function which will tell me how much mem. I have
  22. >Mark>   left?  I'm using Borland C++ v3.1.
  23. >
  24. >Yes it is designed for use with malloc().  It is probably working
  25. >correctly, you probably do not know how it is working.
  26. [...]
  27. >-- 
  28. >Dion Hollenbeck       UUCP: {uunet, ucsd, sun}!megatek!hollen
  29. >                      INTERNET:            hollen@megatek.com
  30. >Megatek Corporation  9645 Scranton Rd.  San Diego, Ca.  92121
  31.  
  32. I don't think I stated my problem very clearly.  My concern is that allocating
  33. space with 'new' may confuse farcoreleft().  I know that combining C style 
  34. memory allocation routines (ie. malloc()) and C++ memory allocation routines
  35. (ie. new) will cause problems - I guess what I want to know is 'Is 
  36. farcorleft() C++ aware?'  Does farcoreleft() know about 'new', or is it
  37. specifically a C function.  And if so, is there a C++ version of farcoreleft()?
  38.  
  39. Mark Wright
  40. wright@epx.cis.umn.edu
  41.