Hi Manal, Can you put in a ³press any key to quit² routine at the end of main? That way the program can block so you can measure the memory footprint using 'top' or 'ps' or whatever your favorite measuring tool, just before your application quits. HTH, --Eljay