I've got a console application that connects a nRF bluetooth USB dongle and starts data notifications. It's a sample program packaged by Nordic (the dongle manufacturer), the code source is available but I directly use the binary.
On my machines (Win7 and Win10), this app constantly freezes within a few seconds. When I report the issue to the manufacturer, he cannot reproduce the freezing.
Then, I want to make a video to show him the freezing, but, suprisingly, when I start Windows Video Grabbing (Windows key + G, on my Win10 machine), then the app does not freeze anymore.
I could reproduce this many times in a row: - I reboot my machine - I run the app 1 to 4 times in a row, it always freezes - I start Windows video grabbing on the console I start the app from - I run the app, it does not freeze. Now it becomes stable every next runs (with or without video grabbing)
I tried to manually change the app priority, with no success.
Is there anything Windows setup when you start video grabbing, at any level, that I could manually set to make my app more stable for good?
Note: I tried to compile the code and debug but this leads nowhere. The freezing is apparently in Windows USB driver layers that just stops propagating data to the app at some point.