[Top][All Lists]

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

RE: newwin seg fault

From: Joe Davies
Subject: RE: newwin seg fault
Date: Thu, 14 Mar 2002 19:40:15 -0500

Hello Thomas,

My understanding was that it returned a window which filled to the right of
the screen.  I *think* I've figured it out: in one of my following routines,
I must have a call to a function that tries to print to a line outside of
the bounds of the main window.  ie printing to (17,1) where the window is
only defined to (14,1).

Stupid thing now that I think about it...

Thanks for your help!

-----Original Message-----
From: Thomas Dickey [mailto:address@hidden
Sent: Thursday, March 14, 2002 7:26 PM
To: Joe Davies
Cc: address@hidden
Subject: Re: newwin seg fault

On Thu, Mar 14, 2002 at 06:54:37PM -0500, Joe Davies wrote:
> Hello All,
> This is my first post to this list.  I'm developing a simple app on unix
> sysV, using Curses (I know, not nCurses!) and can't find any decent
> resources or help on curses.  I ordered a book on Feb 25th, but it hasn't
> arrived yet!
> Anyway, when I create a window using newwin(0,0,0,0) I have no problems,
> when I try to define some constraints to the window, I get a segfault on
> run.  This is using: newwin(14,0,0,0)

That's a window which has zero columns.  Doesn't newwin return a null
in that case?

       WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);

Thomas E. Dickey <address@hidden>

reply via email to

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