This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: invalid pointer error
Mohamed Shafi writes:
> On 8/3/07, Anitha Boyapati <anithab@sankhya.com> wrote:
> >
> >
> > On Fri, 3 Aug 2007, Mohamed Shafi wrote:
> >
> > >
> > > *** glibc detected *** ./readpro.exe: free(): invalid pointer: 0x00c5ac80 ***
> >
> > This is clearly a memory associated error. You are possibly trying to
> > free some memory which is not allocated in one of the destructors as
> > you reach the end of program.
> >
> > Check if you are using delete[] where delete suffices.
>
> I forgot to mention. I am not at all allocating any memory in my
> program and hence delete is not used. Thats why i am very confused.
Valgrind memcheck.
http://valgrind.org/