Click here to Skip to main content
15,915,328 members
Home / Discussions / C#
   

C#

 
GeneralPrivacy ....... Pin
jtmtv187-Mar-03 23:12
jtmtv187-Mar-03 23:12 
GeneralRe: Privacy ....... Pin
Stephane Rodriguez.8-Mar-03 5:31
Stephane Rodriguez.8-Mar-03 5:31 
GeneralDrawing to the Screen Pin
William Bartholomew7-Mar-03 17:37
William Bartholomew7-Mar-03 17:37 
GeneralRe: Drawing to the Screen Pin
leppie7-Mar-03 21:20
leppie7-Mar-03 21:20 
GeneralRe: Drawing to the Screen Pin
Wizard_018-Mar-03 4:06
Wizard_018-Mar-03 4:06 
QuestionHow expensive is Invoke? Pin
Arun Bhalla7-Mar-03 14:49
Arun Bhalla7-Mar-03 14:49 
AnswerRe: How expensive is Invoke? Pin
leppie7-Mar-03 21:45
leppie7-Mar-03 21:45 
AnswerRe: How expensive is Invoke? Pin
Jeff J8-Mar-03 0:06
Jeff J8-Mar-03 0:06 
Adequate efficiency is not usually something that can be predicted, so you might just have to test things.

However, even if you were not making cross-thread calls, thousands of calls in a short period of time (say milliseconds) is not as efficient as batching some data together. This would be especially true if each call only passes a small amount of data. Cross-thread calls will add to execution time, but may or may not be the crucial factor. If things aren't happening as fast as you'd like, it can't hurt to try batching some data together.

Also, keep in mind that Invoke() is synchronous, so each call will wait for completion. BeginInvoke() might be worth looking at, since it is asynchrous, and will return immediately. However, it might be less attractive if the data needs to be synchronised. Which one to use really depends on the particular situation.

Cheers
GeneralSystem.Xml.XmlException while parsing XML stream Pin
nk777-Mar-03 13:16
nk777-Mar-03 13:16 
GeneralRe: System.Xml.XmlException while parsing XML stream Pin
leppie7-Mar-03 23:52
leppie7-Mar-03 23:52 
GeneralException from HRESULT: 0x80131019 Pin
Zombies with Coffee, LLC7-Mar-03 12:17
professionalZombies with Coffee, LLC7-Mar-03 12:17 
GeneralRe: Exception from HRESULT: 0x80131019 Pin
Zombies with Coffee, LLC7-Mar-03 18:16
professionalZombies with Coffee, LLC7-Mar-03 18:16 
GeneralRe: Exception from HRESULT: 0x80131019 Pin
Zombies with Coffee, LLC7-Mar-03 18:22
professionalZombies with Coffee, LLC7-Mar-03 18:22 
GeneralMigration from VB6 Pin
Mark Sanders7-Mar-03 10:08
Mark Sanders7-Mar-03 10:08 
GeneralRe: Migration from VB6 Pin
Paul Riley7-Mar-03 10:42
Paul Riley7-Mar-03 10:42 
QuestionHow di I add a "Send To..." item Pin
Adrian Hall7-Mar-03 8:52
Adrian Hall7-Mar-03 8:52 
AnswerRe: How di I add a "Send To..." item Pin
Stephane Rodriguez.7-Mar-03 9:51
Stephane Rodriguez.7-Mar-03 9:51 
GeneralRe: How di I add a "Send To..." item Pin
Adrian Hall7-Mar-03 10:41
Adrian Hall7-Mar-03 10:41 
GeneralRe: How di I add a "Send To..." item Pin
Stephane Rodriguez.7-Mar-03 11:26
Stephane Rodriguez.7-Mar-03 11:26 
QuestionHow can I field Win32 callbacks like EnumChildWindows? Pin
Mattingly7-Mar-03 7:54
Mattingly7-Mar-03 7:54 
AnswerRe: How can I field Win32 callbacks like EnumChildWindows? Pin
leppie7-Mar-03 8:46
leppie7-Mar-03 8:46 
GeneralRe: How can I field Win32 callbacks like EnumChildWindows? Pin
Mattingly7-Mar-03 9:20
Mattingly7-Mar-03 9:20 
Generalcalling gpg.exe from a console app Pin
zamoranelson7-Mar-03 5:41
zamoranelson7-Mar-03 5:41 
GeneralRe: calling gpg.exe from a console app Pin
Baris Kurtlutepe7-Mar-03 17:06
Baris Kurtlutepe7-Mar-03 17:06 
GeneralInvoking Methods by name Pin
Jon Newman7-Mar-03 4:10
Jon Newman7-Mar-03 4:10 

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.