C
C#15mo ago
Daniel P

❔ Frozen Window C#

I have a question... I unblocked two files (mark of the web) because it didn't update the window after changes but now when I do changes it works only with an issue that I cannot move or do anything in a window it is like frozen... there aren't any errors except warnings could somebody help me how to fix that? thank you
12 Replies
Daniel P
Daniel POP15mo ago
Daniel P
Daniel POP15mo ago
The files are unblocked and when I start the app, there are not any build errors anymore and it works fine, it is frozen when I do only a change right now.
Buddy
Buddy15mo ago
$paste
MODiX
MODiX15mo ago
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
Buddy
Buddy15mo ago
Please post code. Do you use Thread.Sleep anywhere? Or some function that is synchronous that may freeze the thread? Please use the link posted
Daniel P
Daniel POP15mo ago
No I do not
Daniel P
Daniel POP15mo ago
Daniel P
Daniel POP15mo ago
Here are three codes: dataManager.cs, windowMain.cs and infoWindow.cs
Jester
Jester15mo ago
does a dialog window or something stay open? those can maybe freeze your window
Daniel P
Daniel POP15mo ago
It stays stagnant, I cannot move the window, click the buttons, or do anything else... I can close the app only through the exit in the taskbar and no dialog window doesnt stay open
Jester
Jester15mo ago
yeah sounds like something is blocking the ui thread, if the thread cant pump messages then the window cant do anything i cant really look at your code rn but maybe you could put functinality on a background thread
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?