Reputation: 3
Hello how can i force my program to stop responding. I guess i should make a loop of something but i dont want to leak memory.
Could someone provide me an example?
Upvotes: 0
Views: 341
Reputation: 36629
Run Thread.Sleep(60_000)
on the UI thread. That will effectively hang your application for a minute.
Upvotes: 2