Gdk problem.



Hi.

Simple question. Why it compiles ok, and at run prints "segmentation fault" ?

    Gtk::Main main(argc, argv);

    Gtk::Window w;

    Gdk::Color c_red;
    c_red.set_red(65535);

    Glib::RefPtr<Gdk::Window> gdk_w = w.get_frame();
    gdk_w->set_background(c_red);

    Gtk::Main::run();


------------------------------- Darmowy hosting zdjec http://www.iv.pl -------------------------------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]