can any one give me the resoan of unhandeled exception error message?????????
Printable View
can any one give me the resoan of unhandeled exception error message?????????
1)The most common reason is a read/write in a zone of memory where you
should'nt do that(when you go out of the bounds of a array for example or a crazy memcpy)...
2) The second most common reason is a divsion by zero
What does exactly your message say?
Ehrs
i have four for loop .....
int a[256][256],b[8][8];
for(int i=0;i<256;i+=8)
{
for(int j=0;j<256;j+=8)
{
for(int x=i;x<(i+8);x++)
{
for(int y=j;y<(j+8);y++)
{
b[x][y]=a[x][y];
cout<<b[x][y]<<"\t";
}
cout<<endl;
}
}
cout<<endl;
}
when i run this program it gives me unhandeled exception>>>>>
I don't know what you are doing, but you are accessing your b array beyond its boundary, meaning a memory error. For example:
your for(int x=i;x<(i+8);x++), when i > 8, you will access b beyond its bounds.