Re: where is error?
- From: Murray Cumming <murrayc murrayc com>
- To: Paul Pogonyshev <pogonyshev gmx net>
- Cc: gtkmm-list gnome org
- Subject: Re: where is error?
- Date: Sun, 06 Aug 2006 21:03:08 +0200
On Fri, 2006-08-04 at 23:55 +0300, Paul Pogonyshev wrote:
> The example below segfaults or not, depending on whether standard class
> is used (Gtkmm 2.4.10.) Is there an error or is it a bug?
>
> Paul
>
>
> #include <gtkmm/main.h>
> #include <gtkmm/radioaction.h>
> #include <gtkmm/stock.h>
>
>
> namespace
> {
>
> class Radio_action : public Gtk::RadioAction
> {
> public:
>
> Radio_action (Group& group)
> : Gtk::RadioAction (group, "test", Gtk::StockID (), "", "")
> { }
> };
[snip]
Gtk::RadioAction must be used via a RefPtr, obtained via its create()
function. The same is true for derived classes, so you'll need to add a
create() function that returns a RefPtr.
I'm not sure if that's the cause of your crash, but gdb or valgrind
would tell you more about that.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]