Click here to Skip to main content
15,919,132 members
Home / Discussions / C#
   

C#

 
AnswerRe: Instantiating a static class at application start? Pin
User 665831-Jul-08 6:20
User 665831-Jul-08 6:20 
GeneralRe: Instantiating a static class at application start? Pin
Duncan Edwards Jones31-Jul-08 6:29
professionalDuncan Edwards Jones31-Jul-08 6:29 
GeneralRe: Instantiating a static class at application start? Pin
User 665831-Jul-08 6:39
User 665831-Jul-08 6:39 
QuestionRe: Instantiating a static class at application start? Pin
Wendelius31-Jul-08 7:27
mentorWendelius31-Jul-08 7:27 
GeneralRe: Instantiating a static class at application start? Pin
PIEBALDconsult31-Jul-08 10:57
mvePIEBALDconsult31-Jul-08 10:57 
GeneralRe: Instantiating a static class at application start? Pin
Duncan Edwards Jones31-Jul-08 22:49
professionalDuncan Edwards Jones31-Jul-08 22:49 
GeneralRe: Instantiating a static class at application start? Pin
PIEBALDconsult1-Aug-08 3:19
mvePIEBALDconsult1-Aug-08 3:19 
AnswerRe: Instantiating a static class at application start? Pin
PIEBALDconsult1-Aug-08 5:13
mvePIEBALDconsult1-Aug-08 5:13 
A) I expect the class doesn't need to be instantiated until a listener is attached.

B) Is it using events? If not, why not?

C) What's it supposed to do? It seems like all it does is let the listeners know that the class is in memory, not that it's actually doing anything. I prefer my Windows Service code's "heartbeats" to be generated within the service loop itself, so I know the actual code is progressing.
There are times when a Service gets "hung up", at those times I don't want some other thread telling me that everything is going just fine.
Also, the "heartbeats" I use are merely updates to a database, so any system on the network can check the status of all my Services on all the servers. Plus the advantage that a successful "heartbeat" means that the Service can write to the database, which is an important test.


I expect all you really need is an event that you raise at different points in your code.
QuestionDisappearing expand indicators on PropertyGrid Pin
rbuchana31-Jul-08 6:00
rbuchana31-Jul-08 6:00 
AnswerRe: Disappearing expand indicators on PropertyGrid Pin
Thomas Stockwell31-Jul-08 6:31
professionalThomas Stockwell31-Jul-08 6:31 
GeneralRe: Disappearing expand indicators on PropertyGrid [modified] Pin
rbuchana31-Jul-08 6:41
rbuchana31-Jul-08 6:41 
GeneralRe: Disappearing expand indicators on PropertyGrid Pin
Thomas Stockwell31-Jul-08 6:48
professionalThomas Stockwell31-Jul-08 6:48 
GeneralRe: Disappearing expand indicators on PropertyGrid Pin
rbuchana31-Jul-08 7:15
rbuchana31-Jul-08 7:15 
QuestionDo I need to check this.Disposed inside my get/set for properties, too? Pin
JoeRip31-Jul-08 5:07
JoeRip31-Jul-08 5:07 
GeneralRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
Simon P Stevens31-Jul-08 22:03
Simon P Stevens31-Jul-08 22:03 
AnswerRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
PIEBALDconsult1-Aug-08 6:09
mvePIEBALDconsult1-Aug-08 6:09 
AnswerRe: Do I need to check this.Disposed inside my get/set for properties, too? Pin
Scott Dorman2-Aug-08 15:16
professionalScott Dorman2-Aug-08 15:16 
QuestionCadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Muralikumar7631-Jul-08 4:46
Muralikumar7631-Jul-08 4:46 
AnswerRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Simon P Stevens31-Jul-08 4:55
Simon P Stevens31-Jul-08 4:55 
GeneralRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Muralikumar7631-Jul-08 21:04
Muralikumar7631-Jul-08 21:04 
GeneralRe: CadLib for creating DXF(Drawing Interchange Format) files in C# Pin
Simon P Stevens1-Aug-08 2:21
Simon P Stevens1-Aug-08 2:21 
QuestionAlternating Row colors in a VS 2008 .rdlc table Pin
AeonBlue31-Jul-08 3:57
AeonBlue31-Jul-08 3:57 
AnswerRe: Alternating Row colors in a VS 2008 .rdlc table Pin
AeonBlue4-Aug-08 9:10
AeonBlue4-Aug-08 9:10 
Questioncoding for a login class in C# Pin
halalalal31-Jul-08 3:15
halalalal31-Jul-08 3:15 
AnswerRe: coding for a login class in C# Pin
Eduard Keilholz31-Jul-08 3:19
Eduard Keilholz31-Jul-08 3:19 

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.