curs_memleaks(3X)curs_memleaks(3X)NAME
_nc_freeall _nc_free_and_exit - curses memory-leak checking
SYNOPSIS
#include <curses.h>
void _nc_freeall(void);
void _nc_free_and_exit(int);
DESCRIPTION
These functions are used to simplify analysis of memory leaks in the ncurses library. They are normally not available; they must be con-
figured into the library at build time using the --disable-leaks option. That compiles-in code that frees memory that normally would not
be freed.
Any implementation of curses must not free the memory associated with a screen, since (even after calling endwin), it must be available for
use in the next call to refresh. There are also chunks of memory held for performance reasons. That makes it hard to analyze curses ap-
plications for memory leaks. To work around this, one can build a debugging version of the ncurses library which frees those chunks which
it can, and provides these functions to free all of the memory allocated by the ncurses library.
The _nc_free_and_exit function is the preferred one since some of the memory which is freed may be required for the application to continue
running. Its parameter is the code to pass to the exit routine.
RETURN VALUE
These functions do not return a value.
PORTABILITY
These functions are not part of the XSI interface.
SEE ALSO curses(3X).
curs_memleaks(3X)
Check Out this Related Man Page
curs_memleaks(3X)curs_memleaks(3X)NAME
_nc_freeall _nc_free_and_exit - curses memory-leak checking
SYNOPSIS
#include <curses.h>
void _nc_freeall(void);
void _nc_free_and_exit(int);
DESCRIPTION
These functions are used to simplify analysis of memory leaks in the ncurses library. They are normally not available; they must be con-
figured into the library at build time using the --disable-leaks option. That compiles-in code that frees memory that normally would not
be freed.
Any implementation of curses must not free the memory associated with a screen, since (even after calling endwin), it must be available for
use in the next call to refresh. There are also chunks of memory held for performance reasons. That makes it hard to analyze curses ap-
plications for memory leaks. To work around this, one can build a debugging version of the ncurses library which frees those chunks which
it can, and provides these functions to free all of the memory allocated by the ncurses library.
The _nc_free_and_exit function is the preferred one since some of the memory which is freed may be required for the application to continue
running. Its parameter is the code to pass to the exit routine.
RETURN VALUE
These functions do not return a value.
PORTABILITY
These functions are not part of the XSI interface.
SEE ALSO curses(3X).
curs_memleaks(3X)
Hi!! Experts,
Any ideas how to check for the memory leaks in a process during performance testing?? I dont use purify.. Any way of finding it out using default S/W in HP UX-11
Can U gimme pointers to site having good scripts/tutorials on performance testing??
Thanx in Advance..
:) (3 Replies)
When i first restart my computer memory usage is at 24% as the days months and evening pass it gets up to 80% and holds there sometime breaching 98%. Is there an command to regain the memory?
Redhat 8
768 mb ram (6 Replies)
Hi,
I am facing an interesting aspect of find command...
to be clear, we are running a small web server with oracle 8i database and Oralce9iAS on Sun E250 with Solaris 2.6
Over a period of time, the free memory ( displayed in 'top' utility ) drops down.. we could relate this to dedicated... (6 Replies)
I am running HP-UX B.11.11.
I'm increasing a parameter for a database engine so that it uses more memory to buffer the disk drive (to speed up performance). I have over 5GB of memory not being used.
But when I try to start the DB with the increased buffer parameter I get told.
"Not... (1 Reply)
I am running c++ code on AIX unix.I have a doubt that my code is using some memory but it is not clearing that.Some time i am getting heap allocation problem.In my code i am not using any malloc,new functions also i am justing using pointers and arrays.
Is there any way i can find out if the... (2 Replies)
Hi.
This might be a strange request, but does anyone have any idea on a simple shell script that would use more and more memory as it ran? Like a purposeful leak.
I want to test the behaviour of an already running program when the machine runs out of memory.
Thanks! (4 Replies)
Hi,
This is my 1st post here. I am facing a rather weired problem. I have a C++ binary running on HP-UX. The output of top as well as glance shows periodic increase in memory. But when i use gdb to detect it, i dont get the desired output...gdb says...no leaks found. Just to mention that I have... (2 Replies)
Hi all,
I have written a small code just to invoke main and return immediately. When built with libpthread on AIX box, valgrind throws lots of memory leak errors. But when built without libpthread, no issues at all.
Here is the sample run for your look. Any idea where I might be going wrong?... (3 Replies)
All,
I have a software application that requires to find the free memory on the machine. It should work in a hpux Out of the box - in other words, it should use the basic OS commands which are available on every HP-UX machine like top, vmstat and doesn't require the user to purchase 3rd... (2 Replies)
Hi,
I am facing one strange situation while using strftime() to get current date and time in C.
it leaks memory with %T
strftime(L_StrDate,30,"%d-%b-%C%y %T", localtime((time_t *)&tv.tv_sec)) ;
and when i use another option then no memory leak like
strftime(L_StrDate,30,"%d-%b-%C%y ... (3 Replies)
I have written this code in C which reads a very large collection of text files and does some processing. The problem with this code is that there are memory leaks which I am not able to figure out as to where the problem is. When I run this code, and see the memory usage using top command, then I... (7 Replies)
I had a situation where the server was basically unresponsive and apparently it was out of memory. I ran top and free commands and got the following outputs. I figured it was out of memory because there was no free swap left. But quite frankly I'm perplexed by this output, why does it appear that... (3 Replies)
Hi, all,
I'm writing a BBS telnet client, and am trying to implement a status bar into it, at the bottom of the screen.
I am using NCurses to accomplish this. So far, it appears to be working, that is, upon connecting to BBS, it
will display the status bar, and then quickly disappear.
... (5 Replies)