Click here to Skip to main content
15,920,576 members
Home / Discussions / C#
   

C#

 
AnswerRe: Large memory usage. Pin
Jacob Dixon8-Apr-09 15:00
Jacob Dixon8-Apr-09 15:00 
AnswerRe: Large memory usage. Pin
Luc Pattyn8-Apr-09 15:04
sitebuilderLuc Pattyn8-Apr-09 15:04 
GeneralRe: Large memory usage. Pin
Jacob Dixon8-Apr-09 15:10
Jacob Dixon8-Apr-09 15:10 
GeneralRe: Large memory usage. Pin
Luc Pattyn8-Apr-09 15:15
sitebuilderLuc Pattyn8-Apr-09 15:15 
GeneralRe: Large memory usage. Pin
Jacob Dixon8-Apr-09 16:52
Jacob Dixon8-Apr-09 16:52 
GeneralRe: Large memory usage. Pin
Luc Pattyn8-Apr-09 17:17
sitebuilderLuc Pattyn8-Apr-09 17:17 
GeneralRe: Large memory usage. Pin
harold aptroot8-Apr-09 15:35
harold aptroot8-Apr-09 15:35 
GeneralRe: Large memory usage. Pin
Luc Pattyn8-Apr-09 15:58
sitebuilderLuc Pattyn8-Apr-09 15:58 
harold aptroot wrote:
how would you do "the same"


I would not. As I said, when relevant, I install a label (*) that permanently shows the working set, and I don't minimize; I only tell the minimize trick to put people's mind at ease after they got worried by Task Manager.

(*) Actually, the label often is a status bar showing working set, number of GDI objects, current time, and whatever else I consider relevant.

Furthermore, I seldom use Console apps, when I do they are short, simple and short lived. And my windowless Windows apps have very constrained functionality and a very stable memory need.

Having a solid background in real-time and limited-resource systems, I tend to be aware of the objects I create; but then I seldom use third-party libraries, I oversee all the software on a system, and I don't just throw things around without caring at all.

Knowing the large-object-heap never gets compacted, I am fully aware the GC has its limitations, and you may well end up fragmenting your memory, so you may get an OutOfMemoryException even when Task Manager would tell you you are hardly using any memory at all.

For testing purposes, it makes a lot of sense to have a "fast forward" mode, where the app creates objects as intended, but speeds or skips its business logic, so you can simulate a long lasting exceution in a matter of minutes.

In the end, building a reliable and long-lived app with strong variations in memory needs remains a challenge under .NET


Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Large memory usage. Pin
harold aptroot8-Apr-09 16:37
harold aptroot8-Apr-09 16:37 
GeneralRe: Large memory usage. Pin
Luc Pattyn8-Apr-09 17:05
sitebuilderLuc Pattyn8-Apr-09 17:05 
GeneralRe: Large memory usage. Pin
Dave Kreskowiak8-Apr-09 17:47
mveDave Kreskowiak8-Apr-09 17:47 
GeneralRe: Large memory usage. Pin
harold aptroot9-Apr-09 4:59
harold aptroot9-Apr-09 4:59 
GeneralRe: Large memory usage. Pin
Dave Kreskowiak9-Apr-09 13:16
mveDave Kreskowiak9-Apr-09 13:16 
GeneralRe: Large memory usage. Pin
harold aptroot9-Apr-09 13:38
harold aptroot9-Apr-09 13:38 
GeneralRe: Large memory usage. Pin
S. Senthil Kumar8-Apr-09 23:03
S. Senthil Kumar8-Apr-09 23:03 
GeneralRe: Large memory usage. Pin
harold aptroot9-Apr-09 5:00
harold aptroot9-Apr-09 5:00 
GeneralRe: Large memory usage. Pin
Jacob Dixon9-Apr-09 5:16
Jacob Dixon9-Apr-09 5:16 
GeneralRe: Large memory usage. Pin
Luc 6480119-Apr-09 5:39
Luc 6480119-Apr-09 5:39 
AnswerRe: Large memory usage. Pin
Anubhava Dimri8-Apr-09 19:57
Anubhava Dimri8-Apr-09 19:57 
GeneralRe: Large memory usage. Pin
Jacob Dixon9-Apr-09 3:20
Jacob Dixon9-Apr-09 3:20 
GeneralRe: Large memory usage. Pin
Anubhava Dimri9-Apr-09 18:29
Anubhava Dimri9-Apr-09 18:29 
QuestionSelectedIndexChanged problem regarding combobox and data grid Pin
dave18168-Apr-09 14:40
dave18168-Apr-09 14:40 
AnswerRe: SelectedIndexChanged problem regarding combobox and data grid Pin
Christian Graus8-Apr-09 14:42
protectorChristian Graus8-Apr-09 14:42 
GeneralRe: SelectedIndexChanged problem regarding combobox and data grid Pin
a.hamidy8-Apr-09 18:24
a.hamidy8-Apr-09 18:24 
AnswerRe: SelectedIndexChanged problem regarding combobox and data grid Pin
dave18169-Apr-09 5:11
dave18169-Apr-09 5:11 

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.