We attempted to make (a small part of) our own framework where cameras and windows could be created and shut down with ease for the Drive
We took the example code from camera_sample_gmsl , and got it to work decently alright.
However, when we attempt to close the Window (an unique pointer to WindowBase) by clicking the “x” on the window, it does not close properly. We have not found the correct way in code to close such a window. We’re able to stop the incoming stream, and free up almost everything, but the window will remain open in a frozen position. After some time, the OS will indicate that our window is not responding as well.
Herewith the question; how do we properly close a WindowBase in code, so it doesnt linger on screen in this status?
In the sample it got closed by shutting down the entirety of driveworks, which is not something we wanted to do, as we simply wanted to close the window, and keep everything else running.