|
-
March 21st, 2005, 02:36 PM
#1
Error
can any one give me the resoan of unhandeled exception error message?????????
-
March 21st, 2005, 03:00 PM
#2
Re: Error
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
-
March 22nd, 2005, 05:41 AM
#3
Re: Error
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>>>>>
-
March 22nd, 2005, 07:30 AM
#4
Re: Error
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|