Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site hal.UUCP Path: utzoo!linus!decvax!cwruecmp!hal!emr From: emr@hal.UUCP (Edward M. "Harold" Rynes) Newsgroups: net.unix-wizards Subject: Help! Problems with curses! Message-ID: <139@hal.UUCP> Date: Wed, 31-Oct-84 15:07:18 EST Article-I.D.: hal.139 Posted: Wed Oct 31 15:07:18 1984 Date-Received: Fri, 2-Nov-84 05:49:42 EST Organization: CWRU Medical School, Cleveland Lines: 36 I'm having a problem with curses and I hope someone out there can help me. It would seem that when I create too many windows I get a segmentation fault in wrefresh. However in the program in question I have only created 5 windows when the problem occures. The strange part is that a test program I wrote runs flawlessly on another machine (a 68k based machine) but bombs miserably on our VAX 750. Both are running 4.2 BSD. I have included a copy of the test program below. When I run it I get a sementation fault after "Window #12". #include main(){ int i; WINDOW *win[40], *newwin(); initscr(); mvprintw(0,0,"Starting"); refresh(); for(i=0; i<40; ++i){ win[i] = newwin(0,0,0,0); mvwprintw(win[i],9,9,"Window #%d",i); wrefresh(win[i]); } mvprintw(22,0,"Finished"); refresh(); endwin(); } If anyone has any ideas about what's going on please let me know. Thanx Much, Harold decvax!cwruecmp!hal!emr