I am windows form application programmer, my company newly build software which is developed by Visual Studio 2022 latest build, with .Net Framework 4.8, only for 64bit CPU, C# Window Forms application.
It receives multiple IP Cameras stream and events, control various IP based devices such as gate control, detector control, power control, etc.
This program is installed on Windows PC(Windows 10 / Intel 13gen i7 CPU with 16GB RAM) which is situated at our client's security point, and we install TeamViewer Host in order to remote maintenance.
When TeamViewer is running, our software works as it is, without any errors. But when our maintenance team connect to this PC through our TeamViewer channel, software freezes. No respond any keyboard nor mouse input, it can terminate by Task Manager, kill process. Not only when connect in via TeamViewer, while our person connected in, re-run our software, it worked well until TeamViewer disconnect.
When we cut TeamViewer session and stop connection, our software again freezes.
I am trying to fix this by all kind of solutions such as:
Reinstall Windows, uninstall intel Graphic driver and reinstall, set not use UDP on TeamViewer, re-compile our software for running 32bit, change .Net 4.8 to .Net 4.7 (these two steps we are very frustrate because change our software whole architecture is not a easy work), however no luck.
I don't use something special external DLL or library, no calling unsafe C libraries or whatever external libraries except OpenCV for graphics.
I know that it is virtually impossible to pinpoint about what causes this problem with this kind of rough and insufficient background data, but any ideas, or suggestions, for fix this problem?