码迷,mamicode.com
首页 > 编程语言 > 详细

c# 传递Null的string值导致的调用C++的dll报错 Attempted to read or write protected memory.

时间:2016-12-06 09:38:54      阅读:178      评论:0      收藏:0      [点我收藏+]

标签:c#   dll   传递   c++   null   attempted   memory   prot   原因   

c# 调用C++的dll报错 Attempted to read or write protected memory:

 

原因是:c# 传递Null的string值导致的,将Null改为string.empty即可

c# 传递Null的string值导致的调用C++的dll报错 Attempted to read or write protected memory.

标签:c#   dll   传递   c++   null   attempted   memory   prot   原因   

原文地址:http://www.cnblogs.com/94cool/p/6136229.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!