找回密码
 注册
搜索
查看: 1164|回复: 3

[讨论] 求教~SCI_ALLOC_APP的问题~

[复制链接]
发表于 2011-5-28 15:33:04 | 显示全部楼层 |阅读模式
各位:
MMI_STRING_T text = {0};
text.wstr_ptr = SCI_ALLOC_APP(1024);
...
SCI_FREE(text.wstr_ptr);
text.wstr_ptr = PNULL;

在free的时候就死了~再次开始的时候就直接死了.

出问题之前其它地方也是这么用的,突然出了这个问题后,全都是这样...
发表于 2011-5-28 23:07:05 | 显示全部楼层
I guess part of ur code incurs the buffer overrun issue. If buffer overrun, MOCOR would detect it and crash the system as SCI_FREE. Try to take a clear SDK and put ur code into it step by step. You should be able to find out the code to incur buffer overrun.
点评回复

使用道具 举报

发表于 2011-6-27 11:43:42 | 显示全部楼层
应该先用SCI_NULL判断一下有没有分配成功,另外也可以用SCI_GetLastError可获得详细的错误信息!
点评回复

使用道具 举报

发表于 2011-6-24 20:58:12 | 显示全部楼层
调试跟下。
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-2 14:47 , Processed in 0.045790 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表