Click here to Skip to main content
15,907,493 members
Home / Discussions / C#
   

C#

 
AnswerRe: Product Registration and Keys Pin
Steve Maier31-Jul-06 7:32
professionalSteve Maier31-Jul-06 7:32 
QuestionInstaller Dilemma!! Pin
Willem_Le_Roux31-Jul-06 2:26
Willem_Le_Roux31-Jul-06 2:26 
AnswerRe: Installer Dilemma!! Pin
LongRange.Shooter31-Jul-06 5:17
LongRange.Shooter31-Jul-06 5:17 
QuestionRe: Installer Dilemma!! [modified] Pin
Willem_Le_Roux1-Aug-06 0:45
Willem_Le_Roux1-Aug-06 0:45 
QuestionSingleton object doesn't detroy when i assign it to null. Pin
madhusri31-Jul-06 2:07
madhusri31-Jul-06 2:07 
AnswerRe: Singleton object doesn't detroy when i assign it to null. Pin
Ravi Bhavnani31-Jul-06 2:19
professionalRavi Bhavnani31-Jul-06 2:19 
AnswerRe: Singleton object doesn't detroy when i assign it to null. Pin
leppie31-Jul-06 3:23
leppie31-Jul-06 3:23 
GeneralRe: Singleton object doesn't detroy when i assign it to null. Pin
madhusri31-Jul-06 5:35
madhusri31-Jul-06 5:35 
Hi leppie,

When i = null is assigned, there are no reference pointers pointing to the singleton object. Hence if there is a GC, then the singleton object has to be deleted. In this case, next time an instance to the singleton object is created, it should be a new object again. But the old object is being retained and returned when i call createInstance() again.

Basically, when will the singleton object be destroyed from memory?

We understand that an object will be deleted if there are no references to that object or if the object is set to null. Is this right?



Thanks and Regards
Madhu

GeneralNot necessarily Pin
Ennis Ray Lynch, Jr.31-Jul-06 7:42
Ennis Ray Lynch, Jr.31-Jul-06 7:42 
GeneralRe: Not necessarily Pin
engsrini31-Jul-06 8:15
engsrini31-Jul-06 8:15 
GeneralThe GC has to run twice Pin
Ennis Ray Lynch, Jr.31-Jul-06 8:37
Ennis Ray Lynch, Jr.31-Jul-06 8:37 
GeneralRe: Singleton object doesn't detroy when i assign it to null. Pin
Colin Angus Mackay31-Jul-06 8:01
Colin Angus Mackay31-Jul-06 8:01 
GeneralRe: Singleton object doesn't detroy when i assign it to null. Pin
engsrini31-Jul-06 8:23
engsrini31-Jul-06 8:23 
AnswerRe: Singleton object doesn't detroy when i assign it to null. Pin
V.31-Jul-06 4:10
professionalV.31-Jul-06 4:10 
AnswerRe: Singleton object doesn't detroy when i assign it to null. Pin
Colin Angus Mackay31-Jul-06 5:15
Colin Angus Mackay31-Jul-06 5:15 
QuestionCtrl + B in RichtextBox Pin
AB777131-Jul-06 2:02
AB777131-Jul-06 2:02 
AnswerRe: Ctrl + B in RichtextBox Pin
stancrm31-Jul-06 2:16
stancrm31-Jul-06 2:16 
GeneralRe: Ctrl + B in RichtextBox Pin
AB777131-Jul-06 2:24
AB777131-Jul-06 2:24 
GeneralRe: Ctrl + B in RichtextBox Pin
Empires31-Jul-06 2:28
Empires31-Jul-06 2:28 
GeneralRe: Ctrl + B in RichtextBox Pin
AB777131-Jul-06 2:59
AB777131-Jul-06 2:59 
GeneralRe: Ctrl + B in RichtextBox Pin
AB777131-Jul-06 2:37
AB777131-Jul-06 2:37 
GeneralRe: Ctrl + B in RichtextBox Pin
stancrm31-Jul-06 3:27
stancrm31-Jul-06 3:27 
GeneralRe: Ctrl + B in RichtextBox Pin
AB777131-Jul-06 3:31
AB777131-Jul-06 3:31 
AnswerRe: Ctrl + B in RichtextBox Pin
stancrm31-Jul-06 3:36
stancrm31-Jul-06 3:36 
QuestionControlling Access to network (File/Directory) Pin
sundar15631-Jul-06 1:51
sundar15631-Jul-06 1:51 

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.