summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 10:07:32 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-08-13 10:07:32 (GMT)
commit459f406eb2a36d393bd3a2b6aa3d63d86eb99c07 (patch)
tree35593bb978fee75bb7547f3d2c84a9039413fe1f /apps
parentbeac3e74f703148085947d75da6fdaa9fd7472b4 (diff)
downloaduscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.zip
uscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.tar.gz
uscxml-459f406eb2a36d393bd3a2b6aa3d63d86eb99c07.tar.bz2
Started Java datamodel and fixed memory leaks
Diffstat (limited to 'apps')
-rw-r--r--apps/uscxml-browser.cpp31
1 files changed, 16 insertions, 15 deletions
diff --git a/apps/uscxml-browser.cpp b/apps/uscxml-browser.cpp
index 48c1875..70fb540 100644
--- a/apps/uscxml-browser.cpp
+++ b/apps/uscxml-browser.cpp
@@ -89,7 +89,7 @@ void customTerminate() {
<< e.what() << std::endl;
} catch (const std::runtime_error &e) {
std::cerr << __FUNCTION__ << " caught unhandled exception. what(): "
- << e.what() << std::endl;
+ << e.what() << std::endl;
} catch (const uscxml::Event &e) {
std::cerr << __FUNCTION__ << " caught unhandled exception. Event: "
<< e << std::endl;
@@ -174,21 +174,22 @@ int main(int argc, char** argv) {
// intialize http server on given port
HTTPServer::getInstance(port);
- LOG(INFO) << "Processing " << argv[optind];
- Interpreter interpreter = Interpreter::fromURI(argv[optind]);
- if (interpreter) {
- interpreter.setCmdLineOptions(argc, argv);
-// interpreter->setCapabilities(Interpreter::CAN_NOTHING);
-// interpreter->setCapabilities(Interpreter::CAN_BASIC_HTTP | Interpreter::CAN_GENERIC_HTTP);
-
- if (verbose) {
- VerboseMonitor* vm = new VerboseMonitor();
- interpreter.addMonitor(vm);
+ while(true) {
+ LOG(INFO) << "Processing " << argv[optind];
+ Interpreter interpreter = Interpreter::fromURI(argv[optind]);
+ if (interpreter) {
+ interpreter.setCmdLineOptions(argc, argv);
+ // interpreter->setCapabilities(Interpreter::CAN_NOTHING);
+ // interpreter->setCapabilities(Interpreter::CAN_BASIC_HTTP | Interpreter::CAN_GENERIC_HTTP);
+
+ if (verbose) {
+ VerboseMonitor* vm = new VerboseMonitor();
+ interpreter.addMonitor(vm);
+ }
+
+ interpreter.start();
+ while(interpreter.runOnMainThread(25));
}
-
- interpreter.start();
- while(interpreter.runOnMainThread(25));
}
-
return EXIT_SUCCESS;
} \ No newline at end of file