Linux Gurus,

I am trying to create a character based (i.e. NOT X11 based!!) programme
that is trying to use the ncurses library. The server is a Red Hat 5.1
installation running on a Compaq Prolinea 4/50 at this stage although it is
intended to upgrade the hardware to a Compaq Celeron 400 processor box.

My problem comes in the form of the "standard" *nix error message of
Segmentation Fault (core dumped).....  :-(

I have traced the actual instance of the segmentation fault (using gdb) back
to the ncurses library where it is trying to refresh the screen display.

My query is two-fold:
(1) where can I get the "ncurses_g" library that the ncurses(3X) man page
talks about, as the only "ncurses_g" file that I have is a ".a" file that
looks to be machine readable but is not a library (i.e. ".so.") file.
(2) while I am reasonably comfortable with the ncurses library not having a
bug in it, that is, my code at the higher level is causing the flow-on
segmentation fault, I am at a complete loss as to where I can even begin to
start looking for what may be causing this problem!  :-(   Is there anyone
out there that has written code for character based programmes that can give
me some clues? It may just be as simple as how I am initialising the ncurses
data structures, or heap allocations, or .......  ???

Any help at all will be most gratefully received. Also, any pointers to
sample code that I can look at would be of use as well.

Many thanks in advance.

Regards,
MikeH

----------------------------------
Mike Humphreys
Datacom Systems Ltd, Christchurch
Phone: (03) 3386504
Fax:   (03) 3386444
Email: [EMAIL PROTECTED]

Reply via email to