[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!
Joe
-----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,
but
> 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
pointer
in that case?
WINDOW *newwin(int nlines, int ncols, int begin_y, int begin_x);
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net