C#
C#

help

Root Question Message

Koopamillion
Koopamillion12/18/2022
❔ ContextSwitchDeadlock

Hi - in my windows form program I generate some RSA keys before the program loads, this takes around 2 minutes though and after 60 seconds the program crashes due to taking too long - how would I go about preventing this? I don't know much about threads and stuff
Koopamillion
Koopamillion12/18/2022
The "long" function is called under "form1_load"
Cyberrex
Cyberrex12/18/2022
run it on another thread (with Task.Run)
Cyberrex
Cyberrex12/18/2022
show something like a loading icon while generating the keys
Cyberrex
Cyberrex12/18/2022
idk anything about cryptography but 2 minutes seems like a lot
ContactFrequently Asked QuestionsJoin The DiscordBugs & Feature RequestsTerms & Privacy