bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Segmentation fault when calling redrawwin on a fresh window


From: Stephan Beal
Subject: Re: Segmentation fault when calling redrawwin on a fresh window
Date: Fri, 12 Oct 2007 13:46:06 +0200

On 10/12/07, Thorben Krueger <address@hidden> wrote:
  WINDOW *win2 = newwin(50, 50, 50, 50);

i believe your problem lies here. ^^^^^ Are you sure that you want a window which extends from r50,c50, then 50 cells wide and high? Is your screen really that big (at least 100 cells tall)?

When i reduce that to (50,50,10,10) the program does not segfault on me.

PS: don't forget to call endwin() to restore the terminal.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/
reply via email to

[Prev in Thread] Current Thread [Next in Thread]