Lex, -----Original Message----- >From: Lex Trotman <elextr@xxxxxxxxx> >Sent: Mar 26, 2011 8:41 PM >To: ikorot@xxxxxxxxxxxxx >Cc: gtk-list <gtk-list@xxxxxxxxx> >Subject: Re: Timer start registration breaks the gtk_main() > >>>ReadData() is not a good old C function, but a C++ method, carrying >>>around a pointer to the CFrame instance. You should make ReadData() static >>>or use more advanced tecniques, such as libsigc++ [1]. >> >> So all I need is to do: >> >> class CFrame >> { >> Â Â static void ReadData(); >> } >> >> ? >> >> Thank you. >>> > >Do you understand what static member function means? > >It is not automagically passed a pointer to an instance of the object >(no "this") so it will only work if the function does not access any >instance members. Which means that every member of the class that will be used by this function should be static. But this is not good. > >If you are writing in C++ why don't you use gtkmm, the C++ binding >which has the ability to call bound member functions? Originally I wrote my program with wxWidgets, but it was repeatedly crashing without even initializing. But it looks like I will need to do some more work. Thank you. > >Cheers >Lex _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list