c# - Simulating a locked/hung application -
I have an application that interacts with other applications, which otherwise uses SendMessage. Unless the other application hangs (either because it is actually frozen or it is making a long, blocked call) everything is fine. Would I like to simulate an application hanging using a C # WinForms application? Is there any way of blocking calls, running for a long time? Or maybe there is a way of actually applying for freeze? Maybe some such webmail Downloadloading (), but something that will never come back
while (true) {} // busy wait thread Sleep (time); // Blocked
Comments
Post a Comment