Error in magickwand when i run program
Posted: 2012-05-19T11:15:47-07:00
hi evryone..
I have a problem while i run the imagemagick program.i was able to compile the program...but when i run this program...its giving me error..like this..
group_processing: magick/splay-tree.c:655: GetNumberOfNodesInSplayTree: Assertion `splay_info->signature == 0xabacadabUL' failed.
Aborted
All other programs are working fine.can anyone please help me in this? Im getting this error in line where im using NewPixelRegionIterator();
I have a problem while i run the imagemagick program.i was able to compile the program...but when i run this program...its giving me error..like this..
group_processing: magick/splay-tree.c:655: GetNumberOfNodesInSplayTree: Assertion `splay_info->signature == 0xabacadabUL' failed.
Aborted
All other programs are working fine.can anyone please help me in this? Im getting this error in line where im using NewPixelRegionIterator();
Code: Select all
while(a<v.n_sbimg)
{
i=0;
rg_itr=NewPixelRegionIterator(magick_wand,v.col[a],v.row[a],v.sbimg_wdt,v.sbimg_hgt);//Error is coimg here
printf("Here\n");
for (y=0; y<v.sbimg_hgt; y++)
{
pixels = PixelGetNextIteratorRow(rg_itr, &v.sbimg_wdt);//this function iterates row by row in sb_img
for (x=0;x<v.sbimg_wdt; x++)
{
sbimg_pxl_data[i] = (unsigned char) (255*PixelGetRed(pixels[x]));
sbimg_pxl_data[i+1] = (unsigned char) (255*PixelGetGreen(pixels[x]));
sbimg_pxl_data[i+2] = (unsigned char) (255*PixelGetBlue(pixels[x]));
i=i+3;
}
}
memcpy(start,sbimg_pxl_data,v.sbimg_pxl*sizeof(unsigned char));
start=start+v.sbimg_pxl;
a++;
}