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 ACCESS Developer Forums, or to unsubscribe, please
see http://www.access-company.com/developers/forums/