Click here to Skip to main content
15,909,953 members
Home / Discussions / C#
   

C#

 
AnswerRe: Modal Popup (TCartwright's) Pin
Not Active11-Jun-07 9:28
mentorNot Active11-Jun-07 9:28 
GeneralRe: Modal Popup (TCartwright's) Pin
stormcandi11-Jun-07 9:31
stormcandi11-Jun-07 9:31 
QuestionGraphic - Exact string sizes Pin
skuggbo11-Jun-07 9:13
skuggbo11-Jun-07 9:13 
AnswerRe: Graphic - Exact string sizes Pin
Not Active11-Jun-07 9:31
mentorNot Active11-Jun-07 9:31 
GeneralRe: Graphic - Exact string sizes Pin
skuggbo11-Jun-07 10:14
skuggbo11-Jun-07 10:14 
GeneralRe: Graphic - Exact string sizes Pin
Luc Pattyn11-Jun-07 10:39
sitebuilderLuc Pattyn11-Jun-07 10:39 
AnswerRe: Graphic - Exact string sizes Pin
J. Dunlap11-Jun-07 13:13
J. Dunlap11-Jun-07 13:13 
QuestionEvent Firing Pin
tobriain11-Jun-07 8:13
tobriain11-Jun-07 8:13 
Hello,

I hope one of you have found a solution to the following problem before. . . Thanks in advance if you have.

I'm receiving events from an external dll (an RTDServer - set up like an observer pattern), and i've a Notify method that's called when there's an update to be collected. I can then collect a System.Array with a list of updates on a separate thread.

The problem is that the list will contain a number of different update types, and i've to set different variables in an object based on the differentupdates andI've to handle that list (one by one). Which of the following are possible/advisable, and can anyone recommend a better approach?

(a) use a hashtable/sortedlist/sorteddictionary with an indexer and the names of some variables in an object. Search the list, set the object variable, and let the object call any other events needed in the get/set method.

(b) write some kind of custom enumerator for the event types or variables to be set.

(c) use a hashtable/sortedlist/sorteddictionary with an indexer an objects of type Event. Just search the list for the indexer, and call the event to subscribers.

(d) some combination of the above.

The only thing is that speed is very important, because I migt have to call these events sequentially - I haven't investigated doing a foreach on the invocation list and calling asynchronously.Although they're small, I'll have possibly a hundred of these objects, with a hundred threads collecting updates.

Any help with this problem would be much appreciated.

Thanks,

Tom.



AnswerRe: Event Firing Pin
Luc Pattyn11-Jun-07 9:15
sitebuilderLuc Pattyn11-Jun-07 9:15 
GeneralRe: Event Firing Pin
tobriain11-Jun-07 10:11
tobriain11-Jun-07 10:11 
GeneralRe: Event Firing Pin
Luc Pattyn11-Jun-07 10:36
sitebuilderLuc Pattyn11-Jun-07 10:36 
GeneralRe: Event Firing Pin
Leslie Sanford11-Jun-07 10:53
Leslie Sanford11-Jun-07 10:53 
GeneralRe: Event Firing Pin
tobriain11-Jun-07 11:21
tobriain11-Jun-07 11:21 
GeneralRe: Event Firing Pin
Leslie Sanford11-Jun-07 12:03
Leslie Sanford11-Jun-07 12:03 
QuestionActive Directory - logonhours Pin
Runtorious11-Jun-07 8:06
Runtorious11-Jun-07 8:06 
QuestionDatagrid rows Pin
md_refay11-Jun-07 7:58
md_refay11-Jun-07 7:58 
QuestionCPU load for spesific proccess Pin
crash89311-Jun-07 7:58
crash89311-Jun-07 7:58 
AnswerRe: CPU load for spesific proccess Pin
Luc Pattyn11-Jun-07 8:07
sitebuilderLuc Pattyn11-Jun-07 8:07 
GeneralRe: CPU load for spesific proccess Pin
crash89311-Jun-07 15:31
crash89311-Jun-07 15:31 
Question.NET documentor Pin
HexaDeveloper11-Jun-07 5:35
HexaDeveloper11-Jun-07 5:35 
AnswerRe: .NET documentor Pin
Joseph Guadagno11-Jun-07 16:32
Joseph Guadagno11-Jun-07 16:32 
Questiontransparent background Pin
bDreea11-Jun-07 4:22
bDreea11-Jun-07 4:22 
AnswerRe: transparent background Pin
Hesham Yassin11-Jun-07 6:35
Hesham Yassin11-Jun-07 6:35 
QuestionHow add multiple icons Pin
Mark F.11-Jun-07 4:03
Mark F.11-Jun-07 4:03 
AnswerRe: How add multiple icons Pin
Giorgi Dalakishvili11-Jun-07 4:05
mentorGiorgi Dalakishvili11-Jun-07 4:05 

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.