Click here to Skip to main content
15,913,939 members
Home / Discussions / C#
   

C#

 
AnswerRe: need help with adding a worker thread to my singleton Pin
PIEBALDconsult4-Nov-09 9:13
mvePIEBALDconsult4-Nov-09 9:13 
GeneralRe: need help with adding a worker thread to my singleton Pin
abiemann4-Nov-09 12:51
abiemann4-Nov-09 12:51 
GeneralRe: need help with adding a worker thread to my singleton Pin
PIEBALDconsult4-Nov-09 14:05
mvePIEBALDconsult4-Nov-09 14:05 
AnswerRe: need help with adding a worker thread to my singleton Pin
Luc Pattyn4-Nov-09 9:39
sitebuilderLuc Pattyn4-Nov-09 9:39 
GeneralRe: need help with adding a worker thread to my singleton Pin
PIEBALDconsult4-Nov-09 10:56
mvePIEBALDconsult4-Nov-09 10:56 
GeneralRe: need help with adding a worker thread to my singleton Pin
Luc Pattyn4-Nov-09 11:08
sitebuilderLuc Pattyn4-Nov-09 11:08 
GeneralRe: need help with adding a worker thread to my singleton Pin
abiemann4-Nov-09 12:42
abiemann4-Nov-09 12:42 
GeneralRe: need help with adding a worker thread to my singleton Pin
Luc Pattyn4-Nov-09 12:47
sitebuilderLuc Pattyn4-Nov-09 12:47 
Most often when I create a class, even when I only need one instance of it right away, sooner or later a bigger app will want to have more than one instance, so static and singleton aren't the right approach then. It is very seldom you can be sure you will never want more than one instance of anything.

In your case, whatever you have now, you may end up wanting it all duplicated:another queue, another bunch of threads filling the queue, another backgroundworker emptying the queue. So why build in that restriction in the first place?

Smile | :)

Luc Pattyn

I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


GeneralRe: need help with adding a worker thread to my singleton Pin
PIEBALDconsult4-Nov-09 14:22
mvePIEBALDconsult4-Nov-09 14:22 
QuestionTrouble understanding IDisposable Pin
daviiie4-Nov-09 5:35
daviiie4-Nov-09 5:35 
AnswerRe: Trouble understanding IDisposable Pin
Giorgi Dalakishvili4-Nov-09 5:44
mentorGiorgi Dalakishvili4-Nov-09 5:44 
AnswerRe: Trouble understanding IDisposable Pin
Bassam Saoud4-Nov-09 6:29
Bassam Saoud4-Nov-09 6:29 
AnswerRe: Trouble understanding IDisposable Pin
PIEBALDconsult4-Nov-09 7:46
mvePIEBALDconsult4-Nov-09 7:46 
QuestionXml Pin
md_refay4-Nov-09 4:17
md_refay4-Nov-09 4:17 
AnswerRe: Xml Pin
Not Active4-Nov-09 7:15
mentorNot Active4-Nov-09 7:15 
GeneralRe: Xml Pin
Abhishek Sur4-Nov-09 8:39
professionalAbhishek Sur4-Nov-09 8:39 
AnswerRe: Xml Pin
Abhishek Sur4-Nov-09 8:40
professionalAbhishek Sur4-Nov-09 8:40 
QuestionModel-View-Presenter (MVP): events in IView vs Methods in Presenter Pin
art_haali4-Nov-09 3:18
art_haali4-Nov-09 3:18 
AnswerRe: Model-View-Presenter (MVP): events in IView vs Methods in Presenter Pin
Giorgi Dalakishvili4-Nov-09 3:29
mentorGiorgi Dalakishvili4-Nov-09 3:29 
Questionload image Pin
Arefeh Haghpnah4-Nov-09 3:13
Arefeh Haghpnah4-Nov-09 3:13 
AnswerCross post Pin
Not Active4-Nov-09 3:38
mentorNot Active4-Nov-09 3:38 
AnswerRe: load image Pin
Shameel4-Nov-09 4:06
professionalShameel4-Nov-09 4:06 
GeneralRe: load image Pin
Arefeh Haghpnah5-Nov-09 7:32
Arefeh Haghpnah5-Nov-09 7:32 
QuestionSendKeys in WebService Pin
Juergen Loewner4-Nov-09 2:16
Juergen Loewner4-Nov-09 2:16 
AnswerRe: SendKeys in WebService Pin
Dave Kreskowiak4-Nov-09 5:35
mveDave Kreskowiak4-Nov-09 5:35 

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.