|
From: Benjamin L. <ben...@us...> - 2003-09-07 08:37:50
|
Oh... whoah... my bad, I read you email incorrectly. I didn't notice
the 'i' and 'j'. Please ignore my previous email.
Please see comments inserted below...
On Sunday, 2003-09-07 at 05:58:11 PM, Benjamin Lee scribbled:
*snip*
>
> On Sunday, 2003-09-07 at 01:54:19 PM, Gong Cheng scribbled:
> > I have a wired bug
> >
> > the code is like this
> >
> >
> > printf("%d",i);
> > free(j);
> > printf("%d",i);
> >
Can you explain what your 'i' variable has to do with 'j'?
> > if we suppose i =1 ,the result should be
> > 1
> > 1
> > but in reality, the result is
> > 1
> > 0
> >
> > The interesting thing is that if I use valgrind to run the program,
> > the result turn back to
> > 1
> > 1
> >
> > anybody know what's the difference between normal free and the free in
> > valgrind?
> >
> > Thanks a lot!
> >
> > Gong
> >
>
--
Benjamin Lee
Melbourne, Australia "Always real." http://www.realthought.net/
__________________________________________________________________________
What's another word for "thesaurus"?
-- Steven Wright
|