Thread: will it auto release memory

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    will it auto release memory

    Dear all,

    I have the web form which will run in multi-thread mode. I have queries about if there are three thread which are connecting to the another computer in three different sessions and if one of thread completed and web form not closed, will this (one of thread) auto release memory ? I have not written any garbage collector.

    I just know that if web form closed, it will close all session and release memories. Is it correct?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    I think you are very confused.

    Web form? This is C++. Are you using C++/CLI? That's something quite different.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    ASP.NET and C++

    Yes, I am using VS2005 with ASP.NET and C++. In this case, will it auto release memory??

  4. #4
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Yes, if it was allocated on the managed heap (gcnew). No if it was allocated from the unmanaged heap (new).
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    14

    Tools for checking memory usage in detail information

    Dear all,

    Is there any tools working on windows server to check the resources hold by the web server related to the web programming?
    As I want to check how many resources that are hold by different sessions made by the web clients (IIS) . In order to make sure that the resources are released.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with insert/delete binary search tree
    By Nazgulled in forum C Programming
    Replies: 39
    Last Post: 03-25-2009, 04:24 PM
  2. Problems with shared memory shmdt() shmctl()
    By Jcarroll in forum C Programming
    Replies: 1
    Last Post: 03-17-2009, 10:48 PM
  3. Relate memory allocation in struct->variable
    By Niara in forum C Programming
    Replies: 4
    Last Post: 03-23-2007, 03:06 PM
  4. Copying memory, pointers and the like.
    By psychopath in forum C++ Programming
    Replies: 34
    Last Post: 12-12-2006, 01:37 PM
  5. Memory allocation and deallocation
    By Micko in forum C++ Programming
    Replies: 3
    Last Post: 08-19-2005, 06:45 PM