+ if (_appwidget_count <= 0) {
+ std::cerr << "ERROR: No main widgets exist. You must create and show() " <<
+ "an OtkAppWidget for the OtkApplication before calling " <<
+ "OtkApplication::run().\n";
+ ::exit(1);
+ }
+
+ while (_appwidget_count > 0) {
+ dispatchEvents();
+ _timer_manager->fire(); // fire pending events
+ }