Click here to Skip to main content
15,905,682 members
Home / Discussions / C#
   

C#

 
Generalneed some opinions. Pin
sharkfish16-Oct-03 17:46
sharkfish16-Oct-03 17:46 
Generalhelp I'm drowning in something obvious Pin
sharkfish16-Oct-03 16:11
sharkfish16-Oct-03 16:11 
GeneralRe: help I'm drowning in something obvious Pin
Christian Graus16-Oct-03 16:50
protectorChristian Graus16-Oct-03 16:50 
GeneralRe: help I'm drowning in something obvious Pin
sharkfish16-Oct-03 17:37
sharkfish16-Oct-03 17:37 
GeneralRe: help I'm drowning in something obvious Pin
ThunorMagi16-Oct-03 18:18
sussThunorMagi16-Oct-03 18:18 
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 
make sure you "Dispose" all objects which can be disposed!

setting the references to null wont nessaccarily kill the objects, the garbage collection in .NET removes dead objects periodically (from what I have seen)

Typically i have seen my applications the memory useage gradually goes up then every so often it returns to a normal level, this is probably when garbage collection kicks in.

I follow these rules:

1) Any objects which need to be closed get closed in a finally block
2) Any objects which need to be Disposed get disposed and set to null

Cheers, James



James Simpson
Web Developer
imebgo@hotmail.com
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 
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 

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.