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 14:56:26 +0200

On 10/12/07, Thomas Dickey <address@hidden> wrote:
On Fri, 12 Oct 2007, Thorben Krueger wrote:

> so, the problem is not your fault but python's?

It's both - both ncurses and python should be making a check.


Correction: ncurses, python, AND the programmer should be making that check ;).
 
@Thorben: the real problem is that you're creating a window which is too big for the screen, so newwin() returns NULL. Always check the return value of newwin(), because it will fail if you try to create a window which will not fit in the screen.

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

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