Click here to Skip to main content
15,916,702 members
Home / Discussions / C#
   

C#

 
QuestionReleasing Memory Pin
dbetting28-Sep-05 3:30
dbetting28-Sep-05 3:30 
AnswerRe: Releasing Memory Pin
Guffa28-Sep-05 5:22
Guffa28-Sep-05 5:22 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 6:24
dbetting28-Sep-05 6:24 
GeneralRe: Releasing Memory Pin
Guffa28-Sep-05 9:03
Guffa28-Sep-05 9:03 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 9:36
mveDave Kreskowiak28-Sep-05 9:36 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 11:04
dbetting28-Sep-05 11:04 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 11:16
mveDave Kreskowiak28-Sep-05 11:16 
GeneralRe: Releasing Memory Pin
dbetting28-Sep-05 12:13
dbetting28-Sep-05 12:13 
Based on these conversations, I've tried a few other things. Inside FrmMasterParts, I've stepped through the creation of it and each UserControl I create inside of it. Each item I've created, I ensure there is a Dispose() or a null set to it in the Dispose() method (The enums and such didn't like that so I took them back out!). Literally, if it wasn't a form component, I added it to the Dispose(). I did this for the form and each UC.

When executing the program, upon the second and successive instantiation of FrmMasterParts, it's entire content (with the exception of the components) has everything set to undefined (as expected). This would validate that a clean copy of the form is being created with the using(). Upon display of the form, the additional memory is added. Upon the last brace of the using(), FrmMasterParts is no longer accessible but the memory has not been release. Execute GC.Collect(). Still no luck.

The last time I used a memory tool was the early '90's. Do you know of one that I can try to look at the physical memory to get an idea of what is being left out there?

An interesting note: When I minimize my 100MB program, task manager drops by about 99MB. Maximize again. I can do all kinds of stuff and memory stays small. Click the button to open this form, almost all 99MB comes back. Evaluate the content of FrmMasterParts in Autos, and it is empty as discussed above.

This is going on on my Dell laptop, a Compaq laptop as well as the development workstation and production servers so it isn't hardware related.

Thanks for your time.
GeneralRe: Releasing Memory Pin
Dave Kreskowiak28-Sep-05 14:30
mveDave Kreskowiak28-Sep-05 14:30 
GeneralRe: Releasing Memory Pin
dbetting29-Sep-05 1:51
dbetting29-Sep-05 1:51 
GeneralRe: Releasing Memory Pin
Dave Kreskowiak29-Sep-05 11:59
mveDave Kreskowiak29-Sep-05 11:59 
GeneralRe: Releasing Memory Pin
Dan Neely29-Sep-05 2:10
Dan Neely29-Sep-05 2:10 
QuestionCopy a Row from one DataView to another? Pin
thomasa28-Sep-05 2:38
thomasa28-Sep-05 2:38 
AnswerRe: Copy a Row from one DataView to another? Pin
Wjousts28-Sep-05 9:24
Wjousts28-Sep-05 9:24 
QuestionObfuscator - Crytografy code Pin
horacyjr28-Sep-05 1:47
horacyjr28-Sep-05 1:47 
AnswerRe: Obfuscator - Crytografy code Pin
Colin Angus Mackay28-Sep-05 2:33
Colin Angus Mackay28-Sep-05 2:33 
GeneralRe: Obfuscator - Crytografy code Pin
horacyjr28-Sep-05 3:27
horacyjr28-Sep-05 3:27 
QuestionModify app.config Pin
Talktorajeev28-Sep-05 1:47
Talktorajeev28-Sep-05 1:47 
QuestionHelp needed with cookies and WebRequest Pin
nzmike28-Sep-05 1:13
nzmike28-Sep-05 1:13 
AnswerRe: Help needed with cookies and WebRequest Pin
Guffa28-Sep-05 2:18
Guffa28-Sep-05 2:18 
GeneralRe: Help needed with cookies and WebRequest Pin
nzmike28-Sep-05 17:15
nzmike28-Sep-05 17:15 
GeneralRe: Help needed with cookies and WebRequest Pin
Guffa29-Sep-05 22:06
Guffa29-Sep-05 22:06 
QuestionRemoving PropertyGrid border Pin
Rob Cooper28-Sep-05 0:35
Rob Cooper28-Sep-05 0:35 
QuestionNightmare!!! Pin
sean_mufc28-Sep-05 0:12
sean_mufc28-Sep-05 0:12 
AnswerRe: Nightmare!!! Pin
Russell Jones28-Sep-05 4:19
Russell Jones28-Sep-05 4:19 

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.