[prog] curses forms free_field

ed orphan millward at Ms.UManitoba.CA
Mon May 17 21:31:02 EST 2004


The exception error was solved by shortening
a couple of fields from 50 chars to 41 chars.
I hadn't seen any maximum length given in the
docs for fields so I just assumed you could 
make them 80 chars max. But I guess the real
maximum length is less then 50 chars.
   That valgrind program is very interesting.
I compiled my program, px4.c, using
gcc -Wall -W -g -o px4 px4.c -lcurses -lform
Then used valgrind:
 valgrind -v --leak-check=yes --show-reachable=yes px4
The result looks questionable:
    definitely lost:  0 bytes in 0 blocks
   possibley lost:  0 bytes in 0 blocks
   still reachable  35912 bytes in 158 blocks
      suppressed:  0 bytes in 0 blocks
What's this "still reachable" stuff about?  Does it
mean some memory has not been returned to
the heap properly?   Does anybody know?
I don't want any memory leaks, even if they
seem small.
    



More information about the Programming mailing list