3 * Copyright (C) 2007, Harbour, All rights reserved.
12 CommandOption *user_opt_list = 0;
14 CommandOptionNoArg longhelp("longhelp", "", "\t\t\tprints longer help", false,
17 void demo_app::parse_command_options(void)
19 if (longhelp.numSet) {
20 std::cout << "\nlong help message: bla-bla-bla ...\n\n";
25 //#define TEST_SIGSEGV 1
27 void demo_app::main_loop()
31 debug("main loop called");
37 #ifdef NEED_TO_TEST_OUT_OF_MEMORY_CONDITION
40 kk = new char(1000000000);
43 idle(); // F_App::default_idle()
48 int main(int argc, char **argv)
50 setlocale(LC_ALL, "");
51 // the simplest app instance
52 // demo_app app(argc, argv);
53 demo_app app(argc, argv,
54 "Forms Demo App", "v0.1", "Harbour <Harbour@Sfinx.Od.UA>", "LGPLv2",
56 app.start_ui(); // start ui