排错“未能封送类型,因为嵌入数组实例的长度与布局中声明的长度不匹配”

时间:2014-09-23 11:18:45   收藏:0   阅读:903

问题:
在C#给C++传数组类型数据时报此错,相应英文信息为“Type could not be marshaled, because the length of an embed array doesn‘t not match the declared length in the layout”


原因
1、声明的数组长度和实际的数组长度不一致,比如声明的数组长度为1000,实际数组里放了1000多。




原文:http://www.cnblogs.com/zz962/p/3987679.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!