private void frmMain_Closing(object sender, e) { //关闭地图窗口及工作空间,注意顺序 SuperMap1.Close(); SuperMap1.Disconnect(); SuperWorkspace1.Close(); }