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) Perform if / else

Matthew Keys
Matthew Keys
1,922 Points

Unhandled Exception when saying quit

When typing quit i get the following error:

{
// This build system will build your cs file to exe file and will run it "cmd": ["del ${file/\.cs/\.exe/} 2>NUL", "& csc /nologo /out:${file/\.cs/\.exe/} $file", "& ${file/\.cs/\.exe/}"], "file_regex": "^(...?)[(]([0-9]*),([0-9])[)]", // By default csc is not in your PATH, so add it to your path // or uncomment "path" and check that it has correct value //"path": "C:/Windows/Microsoft.NET/Framework64/v4.0.30319/", "shell": true, // Without this sublime has hard times to parse "&" in out command line "selector": "source.cs" }

2 Answers

Steven Parker
Steven Parker
231,248 Points

This error seems unrelated to your program.

It seems to be about the run-time system. Perhaps your program responded to "quit" just fine, but when it exited something else caused this error.

Perhaps you had something on the command line you used to start the program that was not interpreted until after it completed?

Matthew Keys
Matthew Keys
1,922 Points

I figured it out, thanks for the response though.

I ran into this issue after compiling and executing the code without saving the latest changes. Leaving this comment for others as a reminder.

Steven Parker
Steven Parker
231,248 Points

I know folks often forget to save in the workspace. I didn't know there was a similar issue using Sublime.