C# 的扩展 mapi 包装器的问题:
我已经使用了 c# 的 mapi 包装器(作者:Noel Dillabough - http://www.codeproject.com /KB/IP/CMapiEx.aspx)。
我发现几个问题:
- AddAttachment 方法执行操作需要很长时间。
- 执行 ShowForm 方法并打开邮件发送窗口后, 当关闭主应用程序时(但邮件发送窗口仍然保持打开状态)我 收到错误消息:“尝试读取或写入 受保护的内存。这通常表明其他内存正在使用 腐败。”
有人可以帮忙吗? 谢谢!
I have used mapi wrapper for c# (by Noel Dillabough - http://www.codeproject.com/KB/IP/CMapiEx.aspx).
I found few issues:
- AddAttachment method execution operation takes a long time.
- After ShowForm method executed and mail sent window is open,
when close the main application (but mail sent window still stays open) i
get the error message that says: "Attempted to read or write
protected memory. This is often an indication that other memory is
corrupt.".
Can somebody help?
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用扩展 MAPI .Net 包装器时您应该知道的一件事是它们都存在根本缺陷。这是根据微软的指导。
MAPI 确实是旧代码。它使用自己的内存管理系统,与.Net 的内存管理不兼容。
据说,不久前有人讨论过要使 MAPI 子系统与 .Net 兼容,但从未付诸实践。
请参阅此帖子了解完整帐户
http: //blogs.msdn.com/b/stephen_griffin/archive/2009/04/03/mapi-and-net.aspx
One thing you should know when using Extended MAPI .Net wrappers is that their are all fundamentally flawed. That's according to guidance from Microsoft.
MAPI is really old code. It uses it's own memory management system which is incompatible with .Net's memory management.
Supposedly, a while back there was talk to make the MAPI subsystem .Net compatible but that never got off the ground.
See this post for the full account
http://blogs.msdn.com/b/stephen_griffin/archive/2009/04/03/mapi-and-net.aspx