xp系统下五笔输入法切换至智能abc程序异常
xp系统下五笔输入法切换至智能abc引起程序异常,异常点定位在
int clause_size = ::ImmGetCompositionString(imm_context, GCS_COMPCLAUSE,NULL, 0);
int clause_length = clause_size / sizeof(unsigned);
if( (clause_size == IMM_ERROR_NODATA) || (clause_size == IMM_ERROR_GENERAL) || (clause_size==0) )
return ;
unsigned *clause_data = new unsigned[clause_length];
if( clause_data )
{
::ImmGetCompositionString(imm_context,GCS_COMPCLAUSE,clause_data, clause_size); //异常代码
clause_data 该指针对象有效
clause_size 长度可用
求问何原因引起的异常,同样问题换到win7系统,win7智能abc就没该问题