Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
GeneralRe: Memory Management Pin
Luis Alonso Ramos6-Sep-05 16:55
Luis Alonso Ramos6-Sep-05 16:55 
AnswerRe: Memory Management Pin
Christian Graus6-Sep-05 16:56
protectorChristian Graus6-Sep-05 16:56 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:04
VickyC#6-Sep-05 17:04 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:06
protectorChristian Graus6-Sep-05 17:06 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:14
VickyC#6-Sep-05 17:14 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:15
protectorChristian Graus6-Sep-05 17:15 
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:32
VickyC#6-Sep-05 17:32 
GeneralRe: Memory Management Pin
Christian Graus6-Sep-05 17:35
protectorChristian Graus6-Sep-05 17:35 
VickyC# wrote:
Well here is the pattern, it just keeps tagging some memory and then at some point memory is released but it never reaches the initial amount. So when the app will run for an extendend period of time it seems that I will have an issue.

You cannot run out of memory, because if things get to a critical level, the framework will force a collectitself. It will also perform a collect periodically. Any objects that are not used for long are quickly cleaned up. Objects that are used for a long time are cached for a long time, which is what you're fighting when you force the collection yourself.

VickyC# wrote:
Yes, my question is when a form is disposed do all the children get disposed? Or I need to dispose each one.

You don't need to dispose of any forms. You only need to dispose of resources such as bitmaps. But yes, if there is an object tree and the object impliments IDisposable, the dispose method should clean all of it.


Christian Graus - Microsoft MVP - C++
GeneralRe: Memory Management Pin
VickyC#6-Sep-05 17:39
VickyC#6-Sep-05 17:39 
GeneralRe: Memory Management Pin
Dave Kreskowiak7-Sep-05 0:56
mveDave Kreskowiak7-Sep-05 0:56 
GeneralRe: Memory Management Pin
Christian Graus7-Sep-05 12:32
protectorChristian Graus7-Sep-05 12:32 
GeneralRe: Memory Management Pin
Dave Kreskowiak7-Sep-05 16:50
mveDave Kreskowiak7-Sep-05 16:50 
GeneralRe: Memory Management Pin
VickyC#7-Sep-05 20:18
VickyC#7-Sep-05 20:18 
QuestionTreeView Problem Pin
snouto6-Sep-05 14:47
snouto6-Sep-05 14:47 
QuestionDock form to taskbar? Pin
ehollar6-Sep-05 14:43
ehollar6-Sep-05 14:43 
AnswerRe: Dock form to taskbar? Pin
Luis Alonso Ramos6-Sep-05 17:00
Luis Alonso Ramos6-Sep-05 17:00 
GeneralRe: Dock form to taskbar? Pin
ehollar7-Sep-05 5:14
ehollar7-Sep-05 5:14 
GeneralRe: Dock form to taskbar? Pin
Luis Alonso Ramos7-Sep-05 5:26
Luis Alonso Ramos7-Sep-05 5:26 
QuestionErase/Replace line on Button Event?? Pin
Anonymous6-Sep-05 13:57
Anonymous6-Sep-05 13:57 
AnswerRe: Erase/Replace line on Button Event?? Pin
Dave Kreskowiak6-Sep-05 16:14
mveDave Kreskowiak6-Sep-05 16:14 
Questionbreak; instruction Pin
Yoyosch6-Sep-05 13:54
Yoyosch6-Sep-05 13:54 
AnswerRe: break; instruction Pin
Reanalyse6-Sep-05 14:09
Reanalyse6-Sep-05 14:09 
AnswerRe: break; instruction Pin
Andres Manggini6-Sep-05 15:30
Andres Manggini6-Sep-05 15:30 
GeneralRe: break; instruction Pin
Yoyosch6-Sep-05 21:15
Yoyosch6-Sep-05 21:15 
GeneralRe: break; instruction Pin
leppie6-Sep-05 23:11
leppie6-Sep-05 23: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.