Click here to Skip to main content
15,921,467 members
Home / Discussions / C#
   

C#

 
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 
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 
Thanks for the swift and helpful replies.

>Just so I understand... After the Notify method is called, you then call a >method that returns an array of objects. Each object has an ID and a value >property? Is that close?
Leslie has articulated the problem better than I actually did. I'm limited by the interface i've to implement - i collect an array of IDs and values.

>If the action needed for each ID is different, and IDs cover a limited range of
>integers, I would consider an array of delegates and call the one that >corresponds to the ID at hand.

There's only four delegates, so if it's faster to search an array with the ID than a hastable to get the right object, i'll do that. Next problem: which is more efficient: firing events with the update values (referenced to delegates/then public accessor methods in the objects), or just setting the values by a call to the public accessor method of the object found in the array/hashtable myself straight away?

>Final remark: how is speed important ? are you concerned about throughput
>(events per second), or latency (reaction time, from event received to event >handled) ?
Both are important, unfortunately. . The speed concern is because of the fact that I'll have a long hierarchy of subscribers to different events fired as a result of the updates, and don't want to be sitting waiting for the method to return before going to the next row in the update array. . . It's important that the events happen in the right order, so I want (for the moment) the updates to be done sequentially. If I start doing begininvoke on the invocation list, I've no guarantee that anything will happen in order without a serious amount of synchronisation.

Hopefully it seems clearer. I'd appreciate any help on this.

Regards,

Tom.




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 
GeneralRe: How add multiple icons Pin
Mark F.11-Jun-07 4:23
Mark F.11-Jun-07 4:23 
GeneralRe: How add multiple icons Pin
Giorgi Dalakishvili11-Jun-07 4:44
mentorGiorgi Dalakishvili11-Jun-07 4:44 
GeneralRe: How add multiple icons Pin
Not Active11-Jun-07 4:51
mentorNot Active11-Jun-07 4:51 
AnswerRe: How add multiple icons Pin
Squeaker11-Jun-07 5:18
Squeaker11-Jun-07 5:18 
QuestionHow to keep a progress bar running when the form is busy with some file operation Pin
d_sinha11-Jun-07 3:57
d_sinha11-Jun-07 3:57 

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.