|
From: Jonathan W. <jon...@gm...> - 2007-05-25 06:28:33
|
Hi, Maybe you should use valgrind to test your program for leaks (compiling with debugging symbols should help you get a digestable log) Jonathan On 5/24/07, Lloyd <ll...@cd...> wrote: > > Hi, > I have written a program in Linux. > It opens a file and maps it to memory using mmap and unmaps and closes > the file. I am using a custom written data structure as well in the > program. There is no leak associated with the data structure. But some > ware a big leak is present. (I dont know where) I assume it could be > with mmap and munmap... Because as I open more and more files, the leak > gradually increases to megabytes! but for each mam,p the munmap is > called correspondingly. And the range which I give to unmap is correct. > > Where could be the source of problem? Even after the program exit the > memory consumption remains same (not reducted to the program startup > state). I see this with the aid of system monitoring tool.. > > please help me... > > Thanks and Regards, > Lloyd > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- <Morpheus> linux, c'est une question de VI ou de MORE |