Alkingg
March 21st, 2005, 01:36 PM
can any one give me the resoan of unhandeled exception error message?????????
|
Click to See Complete Forum and Search --> : Error Alkingg March 21st, 2005, 01:36 PM can any one give me the resoan of unhandeled exception error message????????? dylog March 21st, 2005, 02:00 PM 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 Alkingg March 22nd, 2005, 04:41 AM 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>>>>> Marc G March 22nd, 2005, 06:30 AM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |