Happy New Year to all of you! My answers to your questions are inline below... -- Jeffrey Richter (http://Wintellect.com<http://wintellect.com/>) From:...
The proxy that contains the DoSomethingAsync method should also have BeginDoSomething/EndDoSomething methods - use the Begin/End methods instead. -- Jeffrey...
Thanks for the quick response. Guess my first new years resolution is going to be to read some Concurrent Affairs articles. #2 will be to use spell check....
Thanks for the quick reply, it seems to work. A note: To get the begin/end methods you need to cast the generated client proxy object to a service. Eg. if your...
Hi Jeffrey, I wrote this code to load some thousand items in a ComboBox async. public delegate IEnumerable<string> LoadComboAsync(); private LoadComboAsync...
I don't know what your ultimate intent is here so it is hard for me to give you guidance. However, updating a UI component (like a combobox) must be done using...
The problem is the following: I show a form to the user that have to fill the fields of this form One of the fields is the city. I pre-load all the Italian...
In this case, I recommend you do what I said about having the loop that calls DoEvents inside it and ignore everything I said about cancelation. Of course, you...
Hi Jeff, I'm really having a hard time, i'm hoping you can help me. I created a quick sample using your library but i dont understand how the threading is ...
I assume you are writing an Windows Forms or WPF app. If so, my AsyncEnumerator uses the constructing thread's SynchronizationContext to make all callbacks;...
I'm writing an ASP.NET application. I added the SyncContext = null but still the BeginExecute method does not return until the InsertData method is completed....
If you just want to execute it asynchronously for some reason, then you could create a delegate and call BeginInvoke/EndInvoke on the delegate. But, why do you...
My goal is to speed up the app by not waiting on database inserts/updates/deletes. My takeaway on the PowerThreading Library is that using it will create a...
Adding threads doesn't speed up the app unless the work that is it doing can be parallelized on multiple CPUs. You're making a DB request and so you have no...
Thx jeffrey for that wonderful explanation! Sent via BlackBerry by AT&T ... From: "Jeffrey Richter (Wintellect LLC)" <JeffreyR@...> Date: Sun, 4 Jan...
Hi Jeffrey, I wrote a Codesmith template that will help newbies to use your wonderful library. How can I send it to you, so you can check it? You just have to...
I think this is a great idea! I don't use CodeSmith myself so I can't test it out but if you post it to the group, perhaps others will find it useful and be...
Sorry... ...how do I send a file to this group??? Roberto ... it to the group, perhaps others will find it useful and be able to provide some feedback. ... ...
You will find 5 attachments:
AsyncEnumerator.cst (CodeSmith Template: you can download the free version)
Sample1.jpg (sample settings with non timeout, void...
Hi Jeffrey, I get, sometimes, the following error: The IAsyncResult object provided does not match this delegate. What puzzles me is that this would only...
SelfComplete is called when my AE is discarding an IAsyncResult that has completed. This is when I call whatever code you passed to ae.End(discardGorup,...
Hi Jeffrey, I've been taking a look at your powerthreading library, which is very cool, thanks! :) While using the library, I was wondering if there might be a...
I agree with you that it would be great to simplify the code and I went down the path of using thread local storage as a way to do this a long time ago. ...
Thanks Jeffrey. It's good to know I wasn't too far off base. I wasn't aware that [ThreadStatic] fields are only initialized once - thanks, I'll fix that. I...
I have a question about the behavior of the timeout feature. It seems that once I use SetCancelTimeout, the timeout value holds until the AsyncEnumerator has...
No. When you cancel (via timeout or otherwise) an AsyncEnumerator, you cancel the whole AsyncEnumerator object. I gave this a lot of thought and the problem is...