Click here to Skip to main content
15,913,152 members
Home / Discussions / C#
   

C#

 
GeneralRe: help I'm drowning in something obvious Pin
Fang@Illusion21-Oct-03 9:27
Fang@Illusion21-Oct-03 9:27 
GeneralDetect cause of application memory leak Pin
Andy Davey16-Oct-03 13:46
Andy Davey16-Oct-03 13:46 
GeneralRe: Detect cause of application memory leak Pin
James Simpson17-Oct-03 1:40
James Simpson17-Oct-03 1:40 
GeneralRe: Detect cause of application memory leak Pin
Julian Bucknall [MSFT]17-Oct-03 5:08
Julian Bucknall [MSFT]17-Oct-03 5:08 
GeneralRe: Detect cause of application memory leak Pin
MtnBiknGuy17-Oct-03 6:50
MtnBiknGuy17-Oct-03 6:50 
GeneralRe: Detect cause of application memory leak Pin
Daniel Turini17-Oct-03 6:52
Daniel Turini17-Oct-03 6:52 
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 9:46
leppie17-Oct-03 9:46 
GeneralRe: Detect cause of application memory leak Pin
Andy Davey17-Oct-03 11:08
Andy Davey17-Oct-03 11:08 
Basically my windows service is used to handle a teletext signal reader (essentially receives text over TV broadcasting) via a C api compiled to a dll.

My service continually waits on the feed for new messages. Once a message is received, it is processed, stored to a database and made available for other applications in my domain.

Where I initially thought my memory was getting gobbled up was in my queues used to pass messages between threads, since depending on the throughput of the device, could have up to 18,000 messages (each message object is probably < 100 bytes or so) waiting to be processed. But I did the math and that didn't come close to my 200Mb working set. Essentially one thread puts messages in a queue and another thread waits for messages in the queue, dequeues the message and processes it. There are around 10 such threading setups in the service.

So I'm looking else where for the problem. Somewhere I'm forgetting to deallocate objects. One thing that I'm testing for at the moment is that maybe one of my threads is crashing and the queue of which its supposed to dequeue is filling up. Since the problem doesn't appear until the service has been running longer than 6 hours or more, it's going to take some time to find (which further makes me think that a thread is crashing somewhere).

Failing one of my threads crashing over the weekend I will be looking at that manager heap profiler mentioned above in one of the posts.

Andy
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 11:49
leppie17-Oct-03 11:49 
GeneralRe: Detect cause of application memory leak Pin
Andy Davey17-Oct-03 12:00
Andy Davey17-Oct-03 12:00 
GeneralRe: Detect cause of application memory leak Pin
leppie17-Oct-03 12:16
leppie17-Oct-03 12:16 
GeneralUpdating my main form (gui) from another class Pin
eggie516-Oct-03 13:34
eggie516-Oct-03 13:34 
GeneralRe: Updating my main form (gui) from another class Pin
Andy Davey16-Oct-03 14:12
Andy Davey16-Oct-03 14:12 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 14:27
eggie516-Oct-03 14:27 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 14:41
eggie516-Oct-03 14:41 
GeneralRe: Updating my main form (gui) from another class Pin
Guillermo Rivero16-Oct-03 15:27
Guillermo Rivero16-Oct-03 15:27 
GeneralRe: Updating my main form (gui) from another class Pin
eggie516-Oct-03 15:44
eggie516-Oct-03 15:44 
GeneralRe: Updating my main form (gui) from another class Pin
Guillermo Rivero16-Oct-03 15:48
Guillermo Rivero16-Oct-03 15:48 
Generalunessecary reply Pin
eggie516-Oct-03 15:52
eggie516-Oct-03 15:52 
GeneralRe: unessecary reply Pin
Guillermo Rivero17-Oct-03 3:40
Guillermo Rivero17-Oct-03 3:40 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 13:46
eggie517-Oct-03 13:46 
GeneralRe: Updating my main form (gui) from another class Pin
ThunorMagi16-Oct-03 18:15
sussThunorMagi16-Oct-03 18:15 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 1:53
eggie517-Oct-03 1:53 
GeneralRe: Updating my main form (gui) from another class Pin
Bo Hunter17-Oct-03 11:32
Bo Hunter17-Oct-03 11:32 
GeneralRe: Updating my main form (gui) from another class Pin
eggie517-Oct-03 11:35
eggie517-Oct-03 11:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.