try catch in a loop
how to make an infinite loop that includes try - catch in C#
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jun 6, 2013, 10:58 PM
you can put any statement which is alway true it make your loop infinite.
while(1=1)
{
try
{
}
catch()
{ }
}
hope this will help you.
VulpesPosted Jun 6, 2013, 4:56 PM
You'll need to press Control C to stop it: