Author Topic: Strange Problem  (Read 2370 times)

pitangui

  • Guest
Strange Problem
« 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Strange Problem
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]