summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-19 17:52:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-10-19 17:52:06 +0200
commitb5828ae08b083e84951bfd149df50340806c8be4 (patch)
tree17fe87f01cf645acdaca355be0f5455ab478d6ff
parent4461b2971abb43a8f93989e6adf61c01f91fa973 (diff)
parent5dbc97ebc29bdfe540cd44ab12997ad1310b1057 (diff)
Merge branch 'master' of github.com:opentrack/opentrack
-rw-r--r--ftnoir_protocol_ft/ftnoir_protocol_ft.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
index 65d877a7..ec5972fc 100644
--- a/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
+++ b/ftnoir_protocol_ft/ftnoir_protocol_ft.cpp
@@ -32,6 +32,7 @@
FTNoIR_Protocol::FTNoIR_Protocol() :
shm(FT_MM_DATA, FREETRACK_MUTEX, sizeof(FTMemMap))
{
+ fprintf(stderr,"calling constructor\n");
pMemData = (FTMemMap*) shm.mem;
useTIRViews = false;
useDummyExe = false;
@@ -51,7 +52,7 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
{
qDebug()<< "~FTNoIR_Protocol: Destructor started.";
-
+
//
// Stop if started
//
@@ -60,8 +61,10 @@ FTNoIR_Protocol::~FTNoIR_Protocol()
viewsStop();
FTIRViewsLib.unload();
}
+ dummyTrackIR.terminate();
dummyTrackIR.kill();
- dummyTrackIR.waitForFinished(5);
+ dummyTrackIR.waitForFinished(50);
+
}
//
@@ -195,8 +198,11 @@ void FTNoIR_Protocol::start_tirviews() {
}
void FTNoIR_Protocol::start_dummy() {
+
+
QString program = QCoreApplication::applicationDirPath() + "/TrackIR.exe";
- dummyTrackIR.startDetached("\"" + program + "\"");
+ dummyTrackIR.setProgram("\"" + program + "\"");
+ dummyTrackIR.start();
qDebug() << "FTServer::run() says: TrackIR.exe executed!" << program;
}