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

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

 

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

posted @ 2016-12-06 09:07  94cool  阅读(1443)  评论(0)    收藏  举报