Re: Gtkmm program crashing when started
- From: Jonas Platte <jonasplatte myopera com>
- To: gtkmm-list gnome org
- Subject: Re: Gtkmm program crashing when started
- Date: Wed, 12 Dec 2012 14:58:29 +0100
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 look for valgrind (whatever that is) :)
>
> I've got a little other problem that probably also has to do with memory
> access, but that one is not about the starting. I think it's better to
> open a new thread for that, right?
>
> Am 12.12.2012 13:55, schrieb Yann LEYDIER:
>> 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 was problem of my program, it would crash the program every time I
>>> started it. And I surely don't delete anything when starting. It has to
>>> be a bug in glibmm or something similar. The big problem is that I can't
>>> really debug it as I don't know if the program will crash when I start
>>> the debugging.
>>> I just wanted to know if anyone knows this problem.
>>>
>>> Am 12.12.2012 13:19, schrieb Yann LEYDIER:
>>>> 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 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(); // This could cause pCppObject to be
>>>>>> deleted.
>>>>> Is this a known bug?
>>>>> _______________________________________________
>>>>> gtkmm-list mailing list
>>>>> gtkmm-list gnome org
>>>>> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>>>>>
>>>> _______________________________________________
>>>> gtkmm-list mailing list
>>>> gtkmm-list gnome org
>>>> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>> _______________________________________________
>> gtkmm-list mailing list
>> gtkmm-list gnome org
>> https://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]