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

.NET (Core and Framework)

 
AnswerRe: debug asp.net (vb) code on visual studio 2003 in windows 7 Pin
Not Active9-Apr-12 8:02
mentorNot Active9-Apr-12 8:02 
QuestionAccessing and adding Items to a Collection that is in a Collection Pin
D3STROYRofWRLDS6-Apr-12 11:27
D3STROYRofWRLDS6-Apr-12 11:27 
AnswerRe: Accessing and adding Items to a Collection that is in a Collection Pin
Eddy Vluggen7-Apr-12 22:06
professionalEddy Vluggen7-Apr-12 22:06 
QuestionAccessing functions or subs from another class. Pin
Member 85988664-Apr-12 5:03
Member 85988664-Apr-12 5:03 
AnswerRe: Accessing functions or subs from another class. Pin
Eddy Vluggen4-Apr-12 5:21
professionalEddy Vluggen4-Apr-12 5:21 
QuestionAsynchronous webservice calls and threading Pin
CDP18024-Apr-12 0:19
CDP18024-Apr-12 0:19 
AnswerRe: Asynchronous webservice calls and threading Pin
Eddy Vluggen4-Apr-12 5:10
professionalEddy Vluggen4-Apr-12 5:10 
GeneralRe: Asynchronous webservice calls and threading Pin
CDP18024-Apr-12 5:58
CDP18024-Apr-12 5:58 
As it seems, the System.Windows.Threading.Dispatcher class was designed just for such a case. It allows to raise an event that then is handled on the thread that the Dispatcher was created for. MSDN did not provide too many details, but it appears that pending events are put into a queue and the thread checks the queue and calls the event handlers. There we basically have the thread's loop that does the checking, hidden away in the framework so that the application does not need to take care of any details.

The problem is that this class is in a WPF namespace. It would work, but then I would lose the option to target other framework versions and platforms where the WPF namespaces don't exist. Two candidates would have been WinPhone 7 and the XBox. But why did they put this class into the WPF namespaces? It would be really helpful in many other cases, not just when some UI is involved.

And I still think that the complete loss of control over which thread gets to execute a callback for an asynchronous operation is very problematic. It's a real complication to make all classes that need to call to the webservice thread safe.
I'm invincible, I can't be vinced



SuggestionRe: Asynchronous webservice calls and threading Pin
Eddy Vluggen4-Apr-12 10:53
professionalEddy Vluggen4-Apr-12 10:53 
AnswerRe: Asynchronous webservice calls and threading Pin
cpkilekofp23-Apr-12 10:43
cpkilekofp23-Apr-12 10:43 
QuestionNumberGroupSeparator not working? Pin
Bernhard Hiller1-Apr-12 22:46
Bernhard Hiller1-Apr-12 22:46 
AnswerRe: NumberGroupSeparator not working? Pin
Eddy Vluggen1-Apr-12 23:37
professionalEddy Vluggen1-Apr-12 23:37 
GeneralRe: NumberGroupSeparator not working? Pin
Bernhard Hiller2-Apr-12 0:56
Bernhard Hiller2-Apr-12 0:56 
GeneralRe: NumberGroupSeparator not working? Pin
Eddy Vluggen2-Apr-12 1:05
professionalEddy Vluggen2-Apr-12 1:05 
GeneralRe: NumberGroupSeparator not working? Pin
VJ Reddy13-Apr-12 6:10
VJ Reddy13-Apr-12 6:10 
QuestionHow to select a feature using mouse click in DotSpatial Framework? Pin
Chandan Kumar Rath29-Mar-12 20:56
Chandan Kumar Rath29-Mar-12 20:56 
AnswerRe: How to select a feature using mouse click in DotSpatial Framework? Pin
Pete O'Hanlon29-Mar-12 21:14
mvePete O'Hanlon29-Mar-12 21:14 
QuestionHas StringBuilder gotten more efficient in VS2010? Pin
jesarg29-Mar-12 5:16
jesarg29-Mar-12 5:16 
AnswerRe: Has StringBuilder gotten more efficient in VS2010? Pin
so_soul29-Mar-12 5:45
so_soul29-Mar-12 5:45 
GeneralRe: Has StringBuilder gotten more efficient in VS2010? Pin
Not Active29-Mar-12 6:31
mentorNot Active29-Mar-12 6:31 
QuestionRe: Has StringBuilder gotten more efficient in VS2010? Pin
Stohn29-Mar-12 5:53
Stohn29-Mar-12 5:53 
AnswerRe: Has StringBuilder gotten more efficient in VS2010? Pin
jesarg29-Mar-12 7:15
jesarg29-Mar-12 7:15 
Questionhow to monitor ftp files by c#.net Pin
eng.rania27-Mar-12 4:06
eng.rania27-Mar-12 4:06 
AnswerRe: how to monitor ftp files by c#.net Pin
Pete O'Hanlon27-Mar-12 4:33
mvePete O'Hanlon27-Mar-12 4:33 
QuestionSIP webphone in Visual Studio 2008 and 2010 Pin
timothydary26-Mar-12 22:40
timothydary26-Mar-12 22:40 

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.