Hi Tulip.
Your program (software) in question has a usual behavior for Linux / Solaris Environment. In my computer the Kdevelop version 3.3.3 has this trouble. All global and static memory area is released at finish a process but the same rule doesnt works for dynamic memory (for list or other structure that require dynamic allocation). The best way to check this is print a trace of desalocation APIs of your process to probe for fails. If you need solve this for a higher job at your company I can propose a solution: Implement a static table to you store all allocated addresses and delete from this table when its was released. And you implement a function to print this table at a proper time. If you has APis of allocation and frees is easier or need fetch all mallocs and frees point (with grep command) Henrique, Fernando ---------------------------- "Keep walking" _____ De: [email protected] [mailto:[EMAIL PROTECTED] Em nome de Tulip Rasputin Enviada em: quarta-feira, 14 de março de 2007 13:45 Para: [email protected] Assunto: [c-prog] Freeing Memory Hi, This isnt really a "C" question per se, so readers can ignore this question if they want to .. However, i am sure there would be folks here who would the answer to this question .. I have a BIG application and when its shutting down it gives a core dump. Its a case of a memory corruption, and some task it seems is overwriting my data structures (basically linked lists) and it crashes when i try to free the memory associated with the linked list. Note that this only happens when i try to shut down my task. I have the following question. When my task is shutting down wont the OS (linux or solaris) anyways free all the memory associated with that task? If thats the case then i dont need to explicitly free the memory as the OS would do it for me. Is this correct? Also, i have seen this in some other programs, which when close dont free the memory. They expect the OS to do it automatically when the process dies. Is this correct? Thanks, Tulip __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. <http://mail.yahoo.com> yahoo.com [Non-text portions of this message have been removed]
