'System.NullReferenceException' occurred in system.windows.forms.dll
用C#写应用程序,出现如下错误.
An unhandled exception of type 'System.NullReferenceException' occurred in system.windows.forms.dll
Additional information: Object reference not set to an instance of an object.
调试时,出错位置在:
public static void Main(string[] args)
{
Application.Run(new SocketClient());
} //这一行左侧有个绿色的三角形,表示出错.