Click here to Skip to main content
15,926,256 members
Home / Discussions / C#
   

C#

 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:29
IrishSonic20-May-04 4:29 
GeneralRe: Dir Search On Server Pin
IrishSonic20-May-04 4:37
IrishSonic20-May-04 4:37 
GeneralRe: Dir Search On Server Pin
Heath Stewart20-May-04 4:43
protectorHeath Stewart20-May-04 4:43 
GeneralProblems with Screen.PrimaryScreen.Bounds Pin
kaloyan20-May-04 3:21
kaloyan20-May-04 3:21 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
Heath Stewart20-May-04 4:14
protectorHeath Stewart20-May-04 4:14 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
kaloyan20-May-04 21:52
kaloyan20-May-04 21:52 
GeneralRe: Problems with Screen.PrimaryScreen.Bounds Pin
Heath Stewart21-May-04 3:30
protectorHeath Stewart21-May-04 3:30 
GeneralSingle Instance of a class as long as it is in use Pin
SmithaC20-May-04 3:03
SmithaC20-May-04 3:03 
Hi,
I want to implement a class in C#, such that one instance of that object should be alive if there are threads using it. If no thread is using it, then delete the object.
So that the next time, any thread needs this class, it should again be created.
It could have been classic singleton, if it would have been alive throughout.
But the hitch is that i need to kill/delete the object when i determine that there is nobody else using it...
Is Locks/mutex is the way out along with reference count.
Could some body throw some light..

GeneralRe: Single Instance of a class as long as it is in use Pin
Grimolfr20-May-04 3:08
Grimolfr20-May-04 3:08 
GeneralRe: Single Instance of a class as long as it is in use Pin
Heath Stewart20-May-04 3:24
protectorHeath Stewart20-May-04 3:24 
GeneralRe: Single Instance of a class as long as it is in use Pin
scadaguy20-May-04 5:57
scadaguy20-May-04 5:57 
GeneralA general question about objects Pin
Christer Claesson20-May-04 2:47
Christer Claesson20-May-04 2:47 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 3:08
protectorHeath Stewart20-May-04 3:08 
GeneralRe: A general question about objects Pin
Christer Claesson20-May-04 3:30
Christer Claesson20-May-04 3:30 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 3:41
protectorHeath Stewart20-May-04 3:41 
GeneralRe: A general question about objects Pin
Christer Claesson20-May-04 4:02
Christer Claesson20-May-04 4:02 
GeneralRe: A general question about objects Pin
Grimolfr20-May-04 3:13
Grimolfr20-May-04 3:13 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 3:34
protectorHeath Stewart20-May-04 3:34 
GeneralRe: A general question about objects Pin
Grimolfr20-May-04 5:09
Grimolfr20-May-04 5:09 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 5:25
protectorHeath Stewart20-May-04 5:25 
GeneralRe: A general question about objects Pin
Grimolfr20-May-04 5:52
Grimolfr20-May-04 5:52 
GeneralRe: A general question about objects Pin
Heath Stewart20-May-04 5:57
protectorHeath Stewart20-May-04 5:57 
GeneralOne more simple question if someone have time. Pin
Christer Claesson20-May-04 5:18
Christer Claesson20-May-04 5:18 
Generaldll that is seen by multiple exe's Pin
jspano20-May-04 2:21
jspano20-May-04 2:21 
GeneralRe: dll that is seen by multiple exe's Pin
Heath Stewart20-May-04 3:01
protectorHeath Stewart20-May-04 3:01 

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.