c# - WPF application fall to "the application isn't responding" on virtual machines and Citrix -


there desktop application based on wpf. application has 1 method takes 2 , more minutes process.

to don't freeze gui, perform operation in background , show progress window. briefly, code is:

progressviewmodel model = new progressviewmodel(); model.worker = new task(() => longtimemethod()); progresswindow window = new progresswindow(model); window.owner = mainwindow; window.showdialog(); 

the progresswindow runs task after has been loaded.

the application can show "the application isn't responding" during running mainwindow don't process events.

notes: 1) there isn't problem on usual pc (only vms , citrix) 2) longtimemethod performs hard local computing, takes 1 thread.

i understand impossible give me answer strange case. piece of advice @ least. thank all.

the problem in .net version. problem has been solved after update .net 4.6.0 4.6.2.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -