Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.os2.programmer.misc > #253

Re: Has anyone seen this (odd memory error) before?

From Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM>
Newsgroups comp.os.os2.programmer.misc
Subject Re: Has anyone seen this (odd memory error) before?
References <mdq090pMZSKk-pn2-yU4O5CRVgzqV@localhost> <iqspu9$2us$1@dont-email.me> <mdq090pMZSKk-pn2-5L3ht1OfyRq3@localhost> <iqudtt$7ni$1@dont-email.me>
Message-ID <IU.D20110518.T002511.P8076.Q0@J.de.Boyne.Pollard.localhost> (permalink)
Organization virginmedia.com
Date 2011-05-18 01:24 +0100

Show all headers | View raw


> As an aside, something that I have historically found VERY helpful and 
> not too hard to do is wrapping malloc/realloc/calloc/free with my own 
> functions.  Have them allocate 8 more bytes than requested and put a 
> "signature" in the beginning and at the end of the block.  Then check 
> it during the free operations.  I had a more complex system in the Mr. 
> Message / Dr. Message source code that actually tracked line numbers 
> and time stamps where the allocations, frees, double frees, etc. 
> occurred, but even just the basics are REALLY helpful, especially when 
> dealing with pointer operations across multiple threads.
>
That's what the debug heap in M. Taylor's original posting was already 
doing.  It's a standard thing with IBM VisualAge for C++.  See the VAC++ 
Programmers' Guide.

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Find similar


Thread

Has anyone seen this (odd memory error) before? "Alex Taylor" <mail.me@reply.to.address> - 2011-05-16 19:17 -0500
  Re: Has anyone seen this (odd memory error) before? Marty <net@comcast.martyamodeo> - 2011-05-16 20:33 -0700
  Re: Has anyone seen this (odd memory error) before? "Ruediger Ihle" <NOSPAM$R.Ihle@S-t.De> - 2011-05-17 07:24 +0000
    Re: Has anyone seen this (odd memory error) before? Marty <net@comcast.martyamodeo> - 2011-05-17 01:01 -0700
  Re: Has anyone seen this (odd memory error) before? "Alex Taylor" <mail.me@reply.to.address> - 2011-05-17 05:53 -0500
    Re: Has anyone seen this (odd memory error) before? Marty <net@comcast.martyamodeo> - 2011-05-17 11:14 -0700
      Re: Has anyone seen this (odd memory error) before? "Lars Erdmann" <lars.erdmann@arcor.de> - 2011-05-18 01:23 +0200
      Re: Has anyone seen this (odd memory error) before? Jonathan de Boyne Pollard <J.deBoynePollard-newsgroups@NTLWorld.COM> - 2011-05-18 01:24 +0100

csiph-web