Computer stuck when using Coroutine, co_await resume_foreground(DispatcherQueue()), co_await resume_background() #1785
-
Hello, I have a question when developing with WinUI 3. I am trying to show two video flows in my desktop program. These two video sources come from two hardware so I write two different functions for these. It is normal for these two video sources to run separately, but they will suddenly freeze within a few minutes when they run at the same time. Not only the program I wrote, but the whole computer is also stuck. Thus I didn't get any debugging information.
Windows::Foundation::IAsyncAction MainWindow::Opensource (IInspectable const&, RoutedEventArgs const&)
source 2 is more complex. the source come is refreshed with a callback function called by the hardware API: std::mutex mutex; Windows::Foundation::IAsyncAction MainWindow::updatesouce2() |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This question is over. I ran my code with my companion’s computer, and there was no problem. After thinking and testing, we suspected that the problem was caused by the influence of my Titan graphics card. After I removed the discrete graphics card and used the intel core graphics card, there was no problem. |
Beta Was this translation helpful? Give feedback.
This question is over. I ran my code with my companion’s computer, and there was no problem. After thinking and testing, we suspected that the problem was caused by the influence of my Titan graphics card. After I removed the discrete graphics card and used the intel core graphics card, there was no problem.