LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-08-2002, 02:08 PM   #1
oldbee
LQ Newbie
 
Registered: Jan 2002
Posts: 20

Rep: Reputation: 0
generic C/C++: memory leak in shared lib/DLL


Hi,

A very generic question:

Is it true that when the shared lib is unloaded - by dlclose() - the memory allocated in the above shared lib - using operator "new" - is automatically released?

If this is true that shared lib releases all memory allocated within it when unloaded, it would be a quite useful feature to correct memory leak in an application - just pushing the leaking part into a shared lib.
Unfortunately, I can not find any reference about this wonderful feature.

Can somwone give me a hint?

Thanks!

oldbee.

ps, I have found it seems to be true in Windows DLL.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems while using shared library as dll.... rajsun Programming 2 09-10-2005 03:25 AM
/lib and DLL hell? learnfast Linux - Newbie 1 03-09-2005 04:53 AM
what is memory leak blackzone Programming 6 11-05-2004 10:32 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM
Memory Leak FredrikN Linux - General 4 09-17-2002 03:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration