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: Thomas Dickey
Subject: Re: Segmentation fault when calling redrawwin on a fresh window
Date: Fri, 12 Oct 2007 07:50:39 -0400 (EDT)

On Fri, 12 Oct 2007, Stephan Beal wrote:

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

it does - but as a rule, ncurses checks the pointer-parameters to ensure they're not-null. In the next line, it hits one of the cases where ncurses doesn't do it.

(a real application would also check the pointers, but that's a different matter ;-)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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