Thank you to everyone who posted. It turns out that I was using SharpDevelop_4.4.1.9729 to build and debug the application. When I read this post, I became suspicious of the open source IDE debugger,
So I tried it again instead, this time using Microsoft Visual Studio 2010 Professional, and it worked with no problem!
UPDATE:
Also, if I choose the option to "Run without debugger" in Sharp Develop, it also works without hanging, so it definitely is a problem with the Sharp Develop debugger.