Canul Podkopayeva wrote:

> I've initalized an array of windows by using...
> 
> WINDOW *win[6];
> 
> For some reason win[0], dosn't want to move. It's color attribute,
> like the others, was correctly set, but it's the only one which does
> not change position.
> In fact...
>    after having...
>    for(i = 0; i < 6; i++) 
>  /* win[6], is being used for something else. */

You don't have a win[6]. If you try to write to win[6], you may
corrupt memory, resulting in undefined behaviour.

> win[i] = newwin(1, 1, i + 1, i + 1);
> 
> Then I have the attributes set then after I move every other windows
> (which happens alot and perfectly too) win[0] fails to respond.
> 
> I have no idea how this could happen, can anyone help?

Can you provide a complete (compilable) example?

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to