MapPoint 落后于 C#
我已将 MapPoint 控件对象包含到我的 C# 表单中。一旦我尝试关闭程序,映射点似乎会释放一点并导致滞后。
我尝试设置 _mpMap.Saved = true;
但没有运气
I have included MapPoint control object into my C# form. Once I try to close the program mappoint seems to free for a bit and causes lag.
I tried setting _mpMap.Saved = true;
but no luck
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于缓存问题、垃圾收集等原因,MapPoint 可能会在启动和关闭期间暂停。
请确保所有 MapPoint 引用都是干净的。一旦你完成了一个对象,就清除引用。为了更好地衡量,如果可能的话,在合适的点运行垃圾收集(例如,在对象密集型批处理作业之后)。
您使用的是 MapPoint 应用程序还是控件?你的问题在这方面是不明确的。无论哪种方式,您都应该考虑使用
using
语句。MapPoint can pause during startup and shutdown due to cache issues, garbage collection, etc.
Make sure all of your MapPoint references are clean. As soon as you've finished with an object, clear the reference. For good measure run the garbage collection at a suitable point if possible (eg. After an object intensive batch job).
Are you working with MapPoint application or the control? Your question is ambiguous in this regard. Either way, you should consider a
using
statement.