From 7c37e6a83b57c1437b63d7f353df4f37f2115988 Mon Sep 17 00:00:00 2001 From: Philip Manke Date: Tue, 11 Jun 2024 15:05:11 +0200 Subject: [PATCH] Add shutdown --- 01_loadMeasurement_cpp/main.cpp | 1 + 02_reprocessMeasurement_cpp/main.cpp | 1 + 03_exportMeasurement_cpp/main.cpp | 1 + 04_changeDistance_cpp/main.cpp | 1 + 05_recordSingleImages_cpp/main.cpp | 1 + 06_recordVideo_cpp/main.cpp | 1 + 07_recordVideoFromSessionFile_cpp/main.cpp | 1 + 7 files changed, 7 insertions(+) diff --git a/01_loadMeasurement_cpp/main.cpp b/01_loadMeasurement_cpp/main.cpp index cbcb57a..6142671 100644 --- a/01_loadMeasurement_cpp/main.cpp +++ b/01_loadMeasurement_cpp/main.cpp @@ -92,5 +92,6 @@ int main(int argc, char* argv[]) std::cout << lambda << "; " << value << std::endl; } + cuvis::General::shutdown(); std::cout << "finished. " << std::endl; } diff --git a/02_reprocessMeasurement_cpp/main.cpp b/02_reprocessMeasurement_cpp/main.cpp index 93b5702..f98b31e 100644 --- a/02_reprocessMeasurement_cpp/main.cpp +++ b/02_reprocessMeasurement_cpp/main.cpp @@ -104,5 +104,6 @@ int main(int argc, char* argv[]) std::cout << "cannot process to mode " << mode.first << std::endl; } } + cuvis::General::shutdown(); std::cout << "finished." << std::endl; } diff --git a/03_exportMeasurement_cpp/main.cpp b/03_exportMeasurement_cpp/main.cpp index 7d47962..2ed1aa7 100644 --- a/03_exportMeasurement_cpp/main.cpp +++ b/03_exportMeasurement_cpp/main.cpp @@ -104,5 +104,6 @@ int main(int argc, char* argv[]) cuvis::CubeExporter exporter(saveArgs); exporter.apply(mesu); } + cuvis::General::shutdown(); std::cout << "finished." << std::endl; } diff --git a/04_changeDistance_cpp/main.cpp b/04_changeDistance_cpp/main.cpp index 8bad62a..4f05fa8 100644 --- a/04_changeDistance_cpp/main.cpp +++ b/04_changeDistance_cpp/main.cpp @@ -67,5 +67,6 @@ int main(int argc, char* argv[]) proc.apply(mesu); std::cout << "saving..." << std::endl; exporter.apply(mesu); + cuvis::General::shutdown(); std::cout << "finished." << std::endl; } diff --git a/05_recordSingleImages_cpp/main.cpp b/05_recordSingleImages_cpp/main.cpp index 8305583..a4df854 100644 --- a/05_recordSingleImages_cpp/main.cpp +++ b/05_recordSingleImages_cpp/main.cpp @@ -101,5 +101,6 @@ int main(int argc, char* argv[]) } */ + cuvis::General::shutdown(); std::cout << "finished." << std::endl; } diff --git a/06_recordVideo_cpp/main.cpp b/06_recordVideo_cpp/main.cpp index 78d5c3f..7b7b6da 100644 --- a/06_recordVideo_cpp/main.cpp +++ b/06_recordVideo_cpp/main.cpp @@ -236,6 +236,7 @@ int main(int argc, char* argv[]) std::cout << "acquisition stopped." << std::endl; acq.set_continuous(false); acq.reset_state_change_callback(); + cuvis::General::shutdown(); cuvis::General::reset_log_callback(); std::cout << std::endl << "finished." << std::endl; } diff --git a/07_recordVideoFromSessionFile_cpp/main.cpp b/07_recordVideoFromSessionFile_cpp/main.cpp index 18c625b..53dd422 100644 --- a/07_recordVideoFromSessionFile_cpp/main.cpp +++ b/07_recordVideoFromSessionFile_cpp/main.cpp @@ -236,5 +236,6 @@ int main(int argc, char* argv[]) acq.set_continuous(false); acq.reset_state_change_callback(); cuvis::General::reset_log_callback(); + cuvis::General::shutdown(); std::cout << std::endl << "finished." << std::endl; }