Following is one function in my C++ project , when I run it in the POSE, the error
message was shown:"During a regular checkup, Poser detemined that the dynamic heap
chunk with header address 0x0001FB7C got corrupted. Some unused flags were set to
'1'". what's wrong with my code?
void ConstructCharsArr(CharPtr data)
{
int i=0,j=0;
char *temp;
while (true)
{
if ( j == TotalFields) break;
temp = new char(intarray[j]);
for (i=0;i<intarray[j];i++)
{
temp[i] = *(data + i);
}
Ddata[j] = temp;
data = data + intarray[j];
j++;
}
}
______________________________________
===================================================================
������ѵ������� http://mail.sina.com.cn
�����Ƴ����˶���Ϣ�ֻ��㲥����
http://sms.sina.com.cn/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/