Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Perfect Final

Infinite loop

Does anyone know how to exit an infinite loop in workspaces? I am working through a code challenge, but I keep getting them and can't stop them. I have to repeatedly close out of workspaces and then reopen it. Frustrating!

3 Answers

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

you have to prevent them in the first place. they cause your computer to crash, it's not a workplaces-specific problem. some IDEs will have a button you can click to break out but it would be best to not create an infinite loop at all.

I understand, but as I am learning the language, I accidentally end up with them sometimes until I know what not to do. :)