VC++中托管代码栈有大小限制?
由于工作需要,在一个类中引入了C#托管代码,打开了/clr开关。此类中定义了大量的strcut和map。
typedef struct
{
CString str1;
CString str2;
CString str3;
}ST1;
.......
typedef struct
{
CString str1;
CString str2;
CString str3;
}STn;
class A
{
...
CMap<CString,LPCTSTR,ST1,ST1> g_map1;
...
CMap<CString,LPCTSTR,ST1,STn> g_mapn;
}
现在碰到一个问题是,g_mapn 这个n大到一定程度(我的程序是12),程序编译通过,但是一debug,报类似
Unhandled Exception :System.IO.FileloadException:'Hello,Version=0.0.0.0,Culture=neutral,PublicKeyToken=null'的错误,去掉一个g_mapn就正常了。这是栈溢出了?