However when i try debug my program, it says "the program has stopped working" then it give the user the usual options "find a solution online to fix the problem", "close to program" or "debud the program".
Ive tried to debug then it comes to a problem in the generated code which is:
Application.Run(new WriteFriendRecords());
anyone have any ideas? bit annoying pretty sure the code I wrote works and I just want to test it!

Thanks.