Code::Blocks Forums

User forums => Help => Topic started by: pitangui on July 12, 2010, 11:02:07 pm

Title: Strange Problem
Post by: pitangui on July 12, 2010, 11:02:07 pm
Hello All,
I am using code::block 8.02 at Ubuntu 9.10.
When I build build and run (F9) from the code::block, my program crashes
with a: *** glibc detected *** malloc(): memory corruption:
But when I build the executable file, and execute it direct from the Gnome Terminal 2.28.1,
it works perfectly fine!
Does anyone have some suggestion why this error when executing direct from code:block?

Thanks in advance!
Title: Re: Strange Problem
Post by: oBFusCATed on July 13, 2010, 10:06:17 am
Read about valgrind, it helps finding memory errors as yours.
Also newer versions of C::B have a plugin that integrates Valgrind. See the nightlies or the 10.05 release.