Hello,
I think I need help with a program I wrote. It uses gtkmm and it
sometimes crashes without a reason when I start it (segmentation fault).
I tried to let it crash when started with debugging and it stopped in
/usr/include/glibmm-2.4/glibmm/refptr.h in line 208:
pCppObject_-unreference(); //
Hi,
you should look at the whole call stack, not just the last line.
However, a crash on unreference() suggests that you delete an object twice.
yann
On 12/12/12 13:11, Jonas Platte wrote:
Hello,
I think I need help with a program I wrote. It uses gtkmm and it
sometimes crashes without a
This certainly means that you have a memory problem.
In this case, you should run your program through valgrind or its
equivalent on windows to detect the double frees and faulty memory
accesses.
yann
PS: don't forget to reply to the list ;)
On 12/12/2012 13:27, Jonas Platte wrote:
If it
Okay it seems that this problem is fixed. I checked if a Glib::RefPtr
equaled NULL in the constructor, before it got an initial value. :D
I think that thing was static before so it could have made sense sometime.
Anyway, thanks Yann :)
Am 12.12.2012 14:03, schrieb Jonas Platte:
Okay thanks I'll