Memory problem with WorkerThread

This is a discussion on Memory problem with WorkerThread within the Windows Programming forums, part of the Platform Specific Boards category; Hello guys, I am frequently using one WorkerThread in my application. It is starting using AfxBeginThread() function. When I run ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    70

    Memory problem with WorkerThread

    Hello guys,

    I am frequently using one WorkerThread in my application. It is starting using AfxBeginThread() function. When I run application from within IDE, debug window is also not showing any memory leake.

    But when I run this application in Windows NT, its task manager shows memory usage going on increasing by time in chunk of 4 KB.

    Can anybody show me the way to control this memory wastage.

    Thanking You,
    Chintan R Naik

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Does it continually leak, or does the leak slow down and stop eventually?

    The reason I ask, is that the NT memory manager tends to allocate memory quite freely, but does not necessarily return it immediately it is deallocated, or necessarily in the same size chunks as it first allocated it.

    If it is perpetually increasing, then you a a bug in your code which you don't show.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with atl memory cleaning
    By Mariam1989 in forum Windows Programming
    Replies: 1
    Last Post: 11-11-2008, 11:35 AM
  2. Pointer's
    By xlordt in forum C Programming
    Replies: 13
    Last Post: 10-14-2003, 02:15 PM
  3. Is it necessary to write a specific memory manager ?
    By Morglum in forum Game Programming
    Replies: 18
    Last Post: 07-01-2002, 01:41 PM
  4. memory allocation problem with 2 dimensional array
    By nano_nasa in forum C++ Programming
    Replies: 7
    Last Post: 06-13-2002, 11:34 AM
  5. Memory Problem - I think...
    By Unregistered in forum C Programming
    Replies: 4
    Last Post: 10-24-2001, 12:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21