Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 MapPoint 控件对象包含到我的 C# 表单中。一旦我尝试关闭程序,mappoint 似乎会释放一段时间并导致延迟。
我尝试设置_mpMap.Saved = true;但没有运气
_mpMap.Saved = true;
由于缓存问题、垃圾收集等,MapPoint 可能会在启动和关闭期间暂停。
确保所有 MapPoint 引用都是干净的。一旦你完成了一个对象,清除引用。如果可能的话(例如,在对象密集型批处理作业之后),最好在合适的时间运行垃圾收集。
您使用的是 MapPoint 应用程序还是控件?你的问题在这方面是模棱两可的。无论哪种方式,你都应该考虑一个using声明。
using