AW: Connecting idle-signal aborts my program
- From: "Daniel Kraft" <d daniel-kraft net>
- To: <gtkmm-list gnome org>
- Subject: AW: Connecting idle-signal aborts my program
- Date: Wed, 28 Dec 2005 14:38:07 +0100
I experimented a bit, and found out that a Glib::Dispatcher's connect also aborts my program. This is also true for the two dispatcher examples shipped with Glibmm documentation.
So I suppose it's a problem with my installation or with the Windows system in general. Does anybody know this problem? What can be done?
Thank you!
Yours,
Daniel Kraft
> I wonder if it's a windows issue. I'm running Ubuntu Breezy and it
> works fine here. Unfortunately I don't have any experience with gtkmm
> on windows.
>
> On 12/28/05, Daniel Kraft <d daniel-kraft net> wrote:
> > Well, for me it compiles and links just without any problems, but
> when I try to run it, I get
> > "Aborted (core dumped)" (but the stack dump doesn't contain any
> stack frames). As I tried out, this happens while connecting to the signal.
> >
> > I'm using GCC 3.4.4 under Windows (cygwin); I use the latest GTKmm
> for Windows release (2.8).
> >
> > > What kind of error do you get? It compiles and runs just fine for me
> > > (using both 2.8.0 and CVS gtkmm)
> > >
> > > On 12/27/05, Daniel Kraft <d daniel-kraft net> wrote:
> > > > Hi!
> > > >
> > > > I want to use the Glib::signal_idle() signal in my program, but
> > > when I try to
> > > > connect my slot (a sigc::ptr_fun) to it, the program is aborted.
> > > The stack dump
> > > > contains no stackframes at all.
> > > >
> > > > The minimal program which produces the error is very simple:
> > > >
> > > >
> > > >
> > > >
> > > > #include <gtkmm/main.h>
> > > > #include <gtkmm/window.h>
> > > >
> > > > #include <iostream>
> > > > using namespace std;
> > > >
> > > > bool idle()
> > > > {
> > > > cerr << "Idle!" << endl;
> > > > return true;
> > > > }
> > > >
> > > > int main(int argc, char** argv)
> > > > {
> > > > Gtk::Main kit(argc, argv);
> > > >
> > > > Gtk::Window w;
> > > > Glib::signal_idle().connect(sigc::ptr_fun(&idle));
> > > > kit.run(w);
> > > >
> > > > return 0;
> > > > }
> >
> >
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]