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


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

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

From "Alex Taylor" <mail.me@reply.to.address>
Newsgroups comp.os.os2.programmer.misc
Subject Re: Has anyone seen this (odd memory error) before?
Date 2011-05-17 05:53 -0500
Organization Newscene Usenet News Service, http://www.newscene.com/
Message-ID <mdq090pMZSKk-pn2-5L3ht1OfyRq3@localhost> (permalink)
References <mdq090pMZSKk-pn2-yU4O5CRVgzqV@localhost> <iqspu9$2us$1@dont-email.me>

Show all headers | View raw


On Tue, 17 May 2011 03:27:01 UTC, Marty <net@comcast.martyamodeo> wrote:

> >   strcpy( pfAttrs->szFacename, pfm[i].szFacename );
> 
> Make sure of the integrity of this pointer.  Also, you should be able to 
> do a heap check (_heapchk() == HEAP_OK in OpenWatcom), depending on your 
> compiler.  Do it after each line if you have to and report an error with 
> a simple puts and fflush.

Well, trying under OpenWatcom actually gave me enough clues to figure
out where the problem was.

No surprise, it was actually due to me mucking up some dynamic memory
allocation in a different part of the program.  I think I've cleared that
up now.  I need to reorganize some of my logic, though...

Thanks!

(BTW, any particular reason I saw four copies of your reply?)

-- 
Alex Taylor
Fukushima, Japan
http://www.socis.ca/~ataylo00

Please take off hat when replying.

Back to comp.os.os2.programmer.misc | Previous | NextPrevious in thread | Next 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