C# C# Objects Inheritance Throwing Exceptions

Jacob Clinton
Jacob Clinton
3,014 Points

The application crashes right after saying that map location is not on the map

All the code compiles correctly and I get the same warning about the variable not being assigned then I get the message that I wrote "That map location is not on the map!" I see the message for a split second before the console clears Why?

Henrik Christensen
Henrik Christensen
33,386 Points

You have to share your code otherwise it's kinda hard to help because it could be a number of reasons

Steven Parker
Steven Parker
127,509 Points

Even better, make a snapshot of your workspace and post the link to it here.

Matthew Cushing
Matthew Cushing
Pro Student 962 Points

Bit late but I'm assuming you're not using TeamTreehouse Workspaces but rather using something like Visual Studio correct? I also had the issue of my console window closing immediately. In Visual Studio you can keep it open by either running it through debug mode or pressing "Start without debugging" (Ctrl + F5)