Click here to Skip to main content
15,896,201 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionHow do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 20:43
JoeRip20-Dec-06 20:43 
AnswerRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 21:11
professionalTarakeshwar Reddy20-Dec-06 21:11 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 21:21
JoeRip20-Dec-06 21:21 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 21:30
professionalTarakeshwar Reddy20-Dec-06 21:30 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
JoeRip20-Dec-06 21:49
JoeRip20-Dec-06 21:49 
GeneralRe: How do I handle events for dropdown menu items created on the fly? Pin
Tarakeshwar Reddy20-Dec-06 22:00
professionalTarakeshwar Reddy20-Dec-06 22:00 
QuestionSharing data across threads Pin
Hendrik Debedts20-Dec-06 4:09
Hendrik Debedts20-Dec-06 4:09 
AnswerRe: Sharing data across threads Pin
Keith Malwitz20-Dec-06 6:03
Keith Malwitz20-Dec-06 6:03 
The potential problem on a hyperthreaded or multi-processor PC is due to the fact that each processor in a PC maintains its own cache. Therefore, if any of the threads executing in your routine happen to run on a different processor, that processor updates its own cache and does not automatically publish the new value to the other processor. This would cause your counter to 'miss' that particular iteration of the counter.

There are several potential solutions to get around this, for instance using the VolatileRead and VolatileWrite methods of the Thread class (these use shared memory that all processor's can access, rather than storing the value of your variable in a CPU register) or using the MemoryBarrier of the Thread class (this method flushes the caches and CPU registers of all the processors into memory, ensuring that variables contain current data). You can get plenty of info on the Thread class and it's methods on the MSDN website.

Hope that helps.
GeneralRe: Sharing data across threads Pin
Hendrik Debedts20-Dec-06 23:35
Hendrik Debedts20-Dec-06 23:35 
QuestionShockwave Flash Component in visual studio 2005 Pin
morteza5719-Dec-06 23:37
morteza5719-Dec-06 23:37 
QuestionGetting reference of calling Assembly. Pin
Syed Muhammad Kamran19-Dec-06 18:55
Syed Muhammad Kamran19-Dec-06 18:55 
GeneralRe: Getting reference of calling Assembly. Pin
Guffa19-Dec-06 19:17
Guffa19-Dec-06 19:17 
QuestionExecutionContext Pin
Hendrik Debedts19-Dec-06 12:19
Hendrik Debedts19-Dec-06 12:19 
QuestionDetermining Memory Footprint of a filled Dataset Pin
Keith Malwitz19-Dec-06 6:25
Keith Malwitz19-Dec-06 6:25 
QuestionARCHITECTURAL DIFFERENCE between .net 1.0 and 2.0? Pin
karam chandrabose19-Dec-06 0:40
karam chandrabose19-Dec-06 0:40 
AnswerRe: ARCHITECTURAL DIFFERENCE between .net 1.0 and 2.0? Pin
Paul Conrad19-Dec-06 5:59
professionalPaul Conrad19-Dec-06 5:59 
AnswerRe: ARCHITECTURAL DIFFERENCE between .net 1.0 and 2.0? Pin
Pete O'Hanlon19-Dec-06 11:32
mvePete O'Hanlon19-Dec-06 11:32 
QuestionGUI Interface of a service Pin
christopheL19-Dec-06 0:23
christopheL19-Dec-06 0:23 
AnswerRe: GUI Interface of a service Pin
PIEBALDconsult19-Dec-06 3:22
mvePIEBALDconsult19-Dec-06 3:22 
GeneralRe: GUI Interface of a service Pin
christopheL19-Dec-06 3:58
christopheL19-Dec-06 3:58 
QuestionHow to Edit a Data Grid, using Text Box or Combobox Pin
Kushwaha2k18-Dec-06 23:53
Kushwaha2k18-Dec-06 23:53 
AnswerRe: How to Edit a Data Grid, using Text Box or Combobox Pin
kinnuP20-Dec-06 0:28
kinnuP20-Dec-06 0:28 
Questionseparate .config file Pin
knez18-Dec-06 23:05
knez18-Dec-06 23:05 
Question.Net:Globalization and SQL:Collate Pin
enduro1x18-Dec-06 18:42
enduro1x18-Dec-06 18:42 
QuestionNo Touch Deployment vs ClickOnce Deployment Pin
KreativeKai18-Dec-06 6:02
professionalKreativeKai18-Dec-06 6:02 

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.