Hi Brett,
Thanks for the reply.

I dont know where i got this information regarding the index limit.

Your program started working after i brought the array into  global scope.

That was also exactly  the reason why my program din't work before.
It used to flash that "Please tell MS about this problem" error untill then.
Would love to find an explanation for this kind of behaviour.



but  thanx a ton for the help.



On 2/22/07, Brett W. McCoy <[EMAIL PROTECTED]> wrote:
>
>   On 2/22/07, comp knight <[EMAIL PROTECTED] <knight.comp%40gmail.com>>
> wrote:
>
> > First of all sorry for not providing the complete information...
> >
> > The image that is being used is a bmp (24bpp).
> > I'm actually trying to dissect the image into several images like in a
> > Handwritten Character Recognition system.
> > Image file traversal is not feasible as such.
>
> Why?
>
> > The initial image is larger than 255*255 (255 being the limit) and hence
> i'm
> > not able to store it in an array.
>
> Why is 255 the limit?
>
> > The only data structure that i intend to use is a static array since
> dynamic
> > allocation seems very much improbable.
>
> Why?
>
> What happens if you run this short program? I get 4000000
>
> #include <stdio.h>
>
> #define IDX_MAX 1000
>
> int main() {
>
> int i, j, arr_size;
>
> int my_array[IDX_MAX][IDX_MAX];
>
> for(i = 0; i < IDX_MAX; i++) {
> for(j = 0; j < IDX_MAX; j++) {
> my_array[i][j] = 10;
> }
> }
>
> arr_size = sizeof(my_array);
>
> printf("size of array = %d\n", arr_size);
>
> return 0;
> }
>
> -- Brett
> ----------------------------------------------------------
> "In the rhythm of music a secret is hidden;
> If I were to divulge it, it would overturn the world."
> -- Jelaleddin Rumi
> 
>


[Non-text portions of this message have been removed]

Reply via email to