Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Jun 28, 2005
1 parent 2c7264f commit fb92c0f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/debugging.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,19 @@ Debugging on Mac OS X
The 'ldd' command doesn't exist, but
otool -L
does almost the same job.

----------------------------------------------------
Using valgrind to find memory leaks (http://valgrind.org/):

* for vector modules:
Support structures are not released by default because it take long time
and it is much faster if it is done by system.

You have to call Vect_set_release_support() before
Vect_close() if you want to use valgrind.

Example (see also http://bambi.otago.ac.nz/hamish/grass/memleak/v.in.ascii/):

CMD="v.in.ascii -zt z=3 in=lidaratm2_250k.txt out=lidaratm2_250k fs=,"
valgrind -v --tool=addrcheck --leak-check=yes --show-reachable=yes $CMD --o

0 comments on commit fb92c0f

Please sign in to comment.