Re: [Vala] exit() ? quit() ?



On Wed, Jul 21, 2010 at 3:47 PM, Harry Van Haaren <harryhaaren gmail com>wrote:

Cheers, but unfortunatly, I dont have a main loop running at the time.

Using Gtk.main_quit() in that spot just returns a:
(main:10988): Gtk-CRITICAL **: gtk_main_quit: assertion `main_loops !=
NULL' failed
while the program keeps running...

I'm looking for the C function:

exit(-1);



Oh, that's even easier :)

Add this to your vala file:

extern void exit(int exit_code);


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