Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6362981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:58:40+00:00 2026-05-24T23:58:40+00:00

I was reading that all a process’s memory is released by the OS when

  • 0

I was reading that all a process’s memory is released by the OS when the process terminates (by any means) so negating the need to call every dtor in turn.

Now my question is how does the memory of a DLL or SO relate to clean up of alloc’d memory?

I ask because I will probably end up using a Java and/or C# to call into a C++ DLL with some static C style functions which will allocate the C++ objects on the heap. Sorry if I got carried away with the heap vs stack thread, I feel I have lost sight of the concept of _the_ heap (ie only one).

Any other potential pitfalls for memory leaks when using libraries?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T23:58:41+00:00Added an answer on May 24, 2026 at 11:58 pm

    The library becomes part of the process when it is loaded. Regarding tidy up of memory, handles, resources etc., the system doesn’t distinguish whether they were created in the executable image or the library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We all know it - this is the reading that lists the changes brought
I've been reading that some devs/dbas recommend using transactions in all database calls, even
I keep reading about C99 and C++11 and all these totally sweet things that
Somewhere I was reading that - regarding low memory warnings and giving up an
I've been reading a couple of docs regarding postgres memory allocation configuration but need
I've been reading that Adobe has made crossdomain.xml stricter in flash 9-10 and I'm
From the reading that I have done, Core Audio relies heavily on callbacks (and
I keep reading that, in C, using pointer arithmetic is generally faster than subscripting
I've been reading that if I have something like this: @property (nonatomic, assign) UIView
I remember reading that static variables declared inside methods is not thread-safe. (See What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.