C # .NET: graphical control makes my application frozen after unlocking the workstation

I have a graphical control that is multithreaded.

This has worked fine so far, but I just noticed that whenever I am in my application showing this control, the following happens: if I lock and unlock my workstation, it freezes, as if it were in what something endless loop.

Even a stranger, this error occurs only when I do not start the application from Visual Studio and are not tied to it.

Does anyone know what is going on?

For example, if I attach Visual Studio to an already frozen application, can I see which lines of code are running my threads?

Any help would be appreciated!

+3
source share
2 answers

Recently, we had (about a year and a half;) the same problem. It also sometimes works when IE flushes caches when you change the colors of your theme. and etc.

The problem was that we had a splash screen in which a window was created in one thread, and then it was shown ( ShowDialog()) in another thread. As soon as we moved the window to the same thread that actually shows it, it resumed. There were also some changes with .Dispose (): ng in the splash window, and they could also have an effect.

Microsoft , Spy ++ , . "Windows", , . , , , /, . "change" , Windows stall → .

+1

VS Pause, VS .

0

Source: https://habr.com/ru/post/1738370/


All Articles