Click here to Skip to main content
15,914,111 members
Home / Discussions / C#
   

C#

 
AnswerRe: dynamic create control Pin
Seishin#17-Jan-07 23:26
Seishin#17-Jan-07 23:26 
AnswerRe: dynamic create control Pin
amitrajput28418-Jan-07 1:16
amitrajput28418-Jan-07 1:16 
QuestionMemory not released Pin
Rick van Woudenberg17-Jan-07 23:20
Rick van Woudenberg17-Jan-07 23:20 
AnswerRe: Memory not released Pin
Christian Graus17-Jan-07 23:45
protectorChristian Graus17-Jan-07 23:45 
GeneralRe: Memory not released Pin
Rick van Woudenberg18-Jan-07 0:10
Rick van Woudenberg18-Jan-07 0:10 
GeneralRe: Memory not released Pin
Christian Graus18-Jan-07 1:33
protectorChristian Graus18-Jan-07 1:33 
GeneralRe: Memory not released Pin
Rick van Woudenberg18-Jan-07 2:41
Rick van Woudenberg18-Jan-07 2:41 
GeneralRe: Memory not released Pin
Scott Dorman18-Jan-07 4:21
professionalScott Dorman18-Jan-07 4:21 
As Christian pointed out, welcome to a garbage collected world. At some point after your object is disposed, the GC will eventually free the memory. Calling Dispose only helps mark the object as collectible.

Rick van Woudenberg wrote:
Even unmanaged resources eventually have to rely on the GC to get cleaned up


Unfortunately, the GC does not know how to free unmanaged resources. That is the reason to call Dispose when you are done using the object.

For a more detailed look at how to implement Dispose, check out the following article:

http://www.codeproject.com/useritems/idisposable.asp[^]

-----------------------------
In just two days, tomorrow will be yesterday.

GeneralRe: Memory not released Pin
S. Senthil Kumar18-Jan-07 5:39
S. Senthil Kumar18-Jan-07 5:39 
GeneralRe: Memory not released Pin
Scott Dorman18-Jan-07 6:58
professionalScott Dorman18-Jan-07 6:58 
GeneralRe: Memory not released Pin
S. Senthil Kumar18-Jan-07 7:08
S. Senthil Kumar18-Jan-07 7:08 
GeneralRe: Memory not released Pin
Scott Dorman18-Jan-07 7:09
professionalScott Dorman18-Jan-07 7:09 
GeneralRe: Memory not released Pin
Christian Graus18-Jan-07 15:14
protectorChristian Graus18-Jan-07 15:14 
AnswerRe: Memory not released Pin
Martin#18-Jan-07 9:11
Martin#18-Jan-07 9:11 
QuestionBug Tracking System Pin
Rahmat ullah khajavi17-Jan-07 23:07
Rahmat ullah khajavi17-Jan-07 23:07 
AnswerRe: Bug Tracking System Pin
Christian Graus17-Jan-07 23:46
protectorChristian Graus17-Jan-07 23:46 
GeneralRe: Bug Tracking System Pin
Rahmat ullah khajavi19-Jan-07 20:02
Rahmat ullah khajavi19-Jan-07 20:02 
QuestionClickOnce in .Net 2005 Pin
Gil Shimer17-Jan-07 23:05
Gil Shimer17-Jan-07 23:05 
QuestionMultiple instances of FileSystemWatcher Pin
JadsHari17-Jan-07 22:48
JadsHari17-Jan-07 22:48 
GeneralRe: Multiple instances of FileSystemWatcher Pin
Seishin#17-Jan-07 23:21
Seishin#17-Jan-07 23:21 
AnswerRe: Multiple instances of FileSystemWatcher Pin
SatyaDY18-Jan-07 1:07
SatyaDY18-Jan-07 1:07 
GeneralRe: Multiple instances of FileSystemWatcher Pin
SatyaDY18-Jan-07 1:11
SatyaDY18-Jan-07 1:11 
AnswerRe: Multiple instances of FileSystemWatcher Pin
amitrajput28418-Jan-07 1:19
amitrajput28418-Jan-07 1:19 
Questionfinding average Pin
viru0417-Jan-07 21:25
viru0417-Jan-07 21:25 
AnswerRe: finding average Pin
Stefan Troschuetz17-Jan-07 21:32
Stefan Troschuetz17-Jan-07 21:32 

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.