WPF App is usually hanging #4812
phuocminh6464
started this conversation in
General
Replies: 2 comments 2 replies
-
Can anyone help me? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does the problem reproduce in the current supported version? At time of writing M124 Check the log file to see if there's any errors. https://github.com/cefsharp/CefSharp/wiki/Trouble-Shooting#log-file Without an actual example it's impossible to say what's going on. You can fork https://github.com/cefsharp/CefSharp.MinimalExample to use as a base for examples. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I have an WPF with .NET 7 and using CefSharp.Wpf.NETCore version 120.2.70. There are many buttons in the MainWindow screen and each button will show a different web url with the header on top. The app is hanging in 2 cases:
Case 1:
When users click to any button in MainWindow then go to web page, they are able to return MainWindow by clicking home button in the header. At that time, I use the following code to release the current web page and move to MainWindow:
But the app sometimes is hanging when users click button on MainWindow after loaded web screen so users must close app to start again.
Case 2:
There is 1 button go to a website which allows users input data and using
CefSharp.PostMessage();
to send message to WPF for printing. After printed, the WPF app must return the print result to web so I create 2 window for this flow.The 1st window is a webpage send data to WPF and then opening the 2nd window which will overlay the 1st. The 2nd window will print and return result to web then closing immediately. The app is ALWAYS hanging in the printing step. I don't know what exactly makes app is hanging because there is 1 screen allows to test print with the fixed data and it's not hanging here.
I'm using the below code to send result to web:
Anyone can advise me the solution to resole hanging issuse here? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions