Click here to Skip to main content
15,908,173 members
Home / Discussions / C#
   

C#

 
QuestionObject lifetime, GC and the State Pattern [modified] Pin
User 66586-Jun-06 3:54
User 66586-Jun-06 3:54 
AnswerRe: Object lifetime, GC and the State Pattern [modified] Pin
Stephan Samuel6-Jun-06 4:03
Stephan Samuel6-Jun-06 4:03 
GeneralRe: Object lifetime, GC and the State Pattern [modified] Pin
User 66586-Jun-06 4:07
User 66586-Jun-06 4:07 
GeneralRe: Object lifetime, GC and the State Pattern Pin
Stephan Samuel6-Jun-06 6:53
Stephan Samuel6-Jun-06 6:53 
GeneralRe: Object lifetime, GC and the State Pattern Pin
User 66586-Jun-06 7:51
User 66586-Jun-06 7:51 
AnswerRe: Object lifetime, GC and the State Pattern [modified] Pin
Guffa6-Jun-06 4:23
Guffa6-Jun-06 4:23 
GeneralRe: Object lifetime, GC and the State Pattern [modified] Pin
User 66586-Jun-06 4:28
User 66586-Jun-06 4:28 
AnswerRe: Object lifetime, GC and the State Pattern [modified] Pin
Guffa6-Jun-06 8:50
Guffa6-Jun-06 8:50 
Greeeg wrote:
So the only thing left in memory will be the instance of the state objects and nothing more?


If you get rid of all references in the object (setting them to null), all objects that it used are up for garbage collection. If the memory is needed, they will be collected.

---
b { font-weight: normal; }

QuestionString manipulation performance issue Pin
sjembek6-Jun-06 3:37
sjembek6-Jun-06 3:37 
AnswerRe: String manipulation performance issue [modified] Pin
sathish s6-Jun-06 3:48
sathish s6-Jun-06 3:48 
GeneralRe: String manipulation performance issue [modified] Pin
sjembek6-Jun-06 4:04
sjembek6-Jun-06 4:04 
AnswerRe: String manipulation performance issue Pin
Stefan Troschuetz6-Jun-06 3:50
Stefan Troschuetz6-Jun-06 3:50 
AnswerRe: String manipulation performance issue [modified] Pin
Guffa6-Jun-06 5:20
Guffa6-Jun-06 5:20 
QuestionControlled Focus event - textBox Pin
conrado76-Jun-06 3:26
conrado76-Jun-06 3:26 
AnswerRe: Controlled Focus event - textBox Pin
NaNg152416-Jun-06 3:34
NaNg152416-Jun-06 3:34 
GeneralRe: Controlled Focus event - textBox Pin
conrado76-Jun-06 3:45
conrado76-Jun-06 3:45 
QuestionException Pin
sanmech6-Jun-06 3:25
sanmech6-Jun-06 3:25 
QuestionDrag&Drop listview subitem? Pin
Dominik Reichl6-Jun-06 3:16
Dominik Reichl6-Jun-06 3:16 
Questionconnected to the internet or not ?? Pin
Tamimi - Code6-Jun-06 3:10
Tamimi - Code6-Jun-06 3:10 
AnswerRe: connected to the internet or not ?? Pin
stancrm6-Jun-06 3:31
stancrm6-Jun-06 3:31 
GeneralRe: connected to the internet or not ?? Pin
Tamimi - Code6-Jun-06 3:47
Tamimi - Code6-Jun-06 3:47 
GeneralRe: connected to the internet or not ?? Pin
stancrm6-Jun-06 3:55
stancrm6-Jun-06 3:55 
GeneralRe: connected to the internet or not ?? Pin
Aaron Dilliard6-Jun-06 3:57
Aaron Dilliard6-Jun-06 3:57 
QuestionKeyboard layout Pin
hany_hu6-Jun-06 2:58
hany_hu6-Jun-06 2:58 
AnswerRe: Keyboard layout Pin
stancrm6-Jun-06 3:03
stancrm6-Jun-06 3:03 

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.