更新时间:2023-11-10 16:12:34
您正在堆栈上创建所有对象 gameObject objList [100];
,每个对象中都有一个大数组 COLORREF spriteData [256] [256];
.那是你的堆栈溢出.
You are creating all your objects on the stack gameObject objList[100];
, and each of them has a big array in them COLORREF spriteData[256][256];
. That's your stack overflow.
使用 std :: vector
存储对象.