wrote:
> I've purposefully made the MAXX and MAXY values larger then the image
> that I'm using to test the code. I'll try using a vector instead but
> I'd like to know why my code doesn't work since it seems to be correct.
First, please quote the message you are responding to. It makes it
easier for others not using Google Groups to follow the discussion.
(BTW, you can do it automatically on Google Groups by clicking "show
options" and then "Reply" in the revealed header.)
Second, it's hard for us to tell much of anything from the little code
you posted, but such problems are usually caused by wayward pointers
and bad array indices (sometimes in a completely different part of the
program!). If you can reduce your code to the smallest compilable
sample that demonstrates the problem, we might be able to help you
more. Otherwise, check into a tool for your system that does bounds
checking for you (e.g., valgrind).
Cheers! --M