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

.NET (Core and Framework)

 
GeneralRe: Framework and Flatform? Pin
hkim_zoro7-Jul-09 16:23
hkim_zoro7-Jul-09 16:23 
QuestionBest practice for updating UI in multi-threaded app Pin
bobishkindaguy5-Jul-09 13:55
bobishkindaguy5-Jul-09 13:55 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
Gideon Engelberth5-Jul-09 16:03
Gideon Engelberth5-Jul-09 16:03 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat96-Jul-09 13:13
supercat96-Jul-09 13:13 
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy6-Jul-09 13:32
bobishkindaguy6-Jul-09 13:32 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat97-Jul-09 5:27
supercat97-Jul-09 5:27 
QuestionRe: Best practice for updating UI in multi-threaded app Pin
bobishkindaguy8-Jul-09 12:51
bobishkindaguy8-Jul-09 12:51 
AnswerRe: Best practice for updating UI in multi-threaded app Pin
supercat98-Jul-09 13:01
supercat98-Jul-09 13:01 
The proper location and scope of the UpdateNeeded variable will depend somewhat upon the application. For a user-class control that has a single 'update everything' method, it's probably easiest to include the variable within the control's class and then have a public 'update asynchronously' method. For standard controls, it's probably easiest to use an updateNeeded variable within the scope of the parent object (if there are several controls that may independently need to be updated, they should have separate updateNeeded variables).

The Threading.Interlocked.Exchange() is done in an if-test to see if BeginInvoke should be called.

BeginInvoke will throw an unavoidable exception if an object is disposed just before it is called. I'm not sure under what other conditions it may throw an exception, but if for any reason BeginInvoke fails, the updateNeeded variable will never get set back to 0 unless the routine that was supposed to call BeginInvoke resets it.
QuestionHow to get http request?? Pin
david bagaturia5-Jul-09 9:21
david bagaturia5-Jul-09 9:21 
AnswerRe: How to get http request?? Pin
Mark Salsbery6-Jul-09 10:05
Mark Salsbery6-Jul-09 10:05 
GeneralRe: How to get http request?? Pin
david bagaturia6-Jul-09 10:35
david bagaturia6-Jul-09 10:35 
GeneralRe: How to get http request?? Pin
0x3c06-Jul-09 10:41
0x3c06-Jul-09 10:41 
QuestionTroy's looking Pin
Troy Russell5-Jul-09 6:28
Troy Russell5-Jul-09 6:28 
QuestionHelp needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 2:47
ChiSmile5-Jul-09 2:47 
AnswerRe: Help needed in decryption with TripleDes method Pin
Alan N5-Jul-09 3:24
Alan N5-Jul-09 3:24 
GeneralRe: Help needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 4:58
ChiSmile5-Jul-09 4:58 
GeneralRe: Help needed in decryption with TripleDes method Pin
Henry Minute5-Jul-09 5:53
Henry Minute5-Jul-09 5:53 
GeneralRe: Help needed in decryption with TripleDes method Pin
ChiSmile5-Jul-09 15:08
ChiSmile5-Jul-09 15:08 
QuestionHow to Display ads on .Net form? Pin
slimtugo4-Jul-09 23:50
slimtugo4-Jul-09 23:50 
AnswerRe: How to Display ads on .Net form? Pin
Eddy Vluggen4-Jul-09 23:58
professionalEddy Vluggen4-Jul-09 23:58 
QuestionRe: How to Display ads on .Net form? Pin
slimtugo7-Jul-09 8:01
slimtugo7-Jul-09 8:01 
AnswerRe: How to Display ads on .Net form? Pin
Eddy Vluggen7-Jul-09 8:29
professionalEddy Vluggen7-Jul-09 8:29 
GeneralRe: How to Display ads on .Net form? Pin
slimtugo12-Jul-09 20:42
slimtugo12-Jul-09 20:42 
QuestionOpen Password protected file Pin
ksss_maheshece3-Jul-09 23:58
ksss_maheshece3-Jul-09 23:58 
AnswerRe: Open Password protected file Pin
Colin Angus Mackay4-Jul-09 0:07
Colin Angus Mackay4-Jul-09 0:07 

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.