Available for immediate download is the newest release of my Power Threading Library. This release includes support for the .NET Framework, Silverlight, and...
Hi Just downloaded your new release, no issues so far However I have a question I have such a code AsyncEnumerator ae = new AsyncEnumerator(); ...
Eugen Rata
eugen.rata@...
Feb 2, 2009 5:32 pm
322
Fix the calls to Begin/End so they look like the below: AsyncEnumerator ae = new AsyncEnumerator(); ae.EndExecute(ae.BeginExecute(DoAuthenticate(ae), null,...
Something is wrong with that code, the method DoAuthenticate never gets called and application just hangs. If I do the old way method is called and works fine,...
Eugen Rata
eugen.rata@...
Feb 2, 2009 10:38 pm
324
You must be in a Windows Forms or WPF app then, right? If so, then call "ae.SyncContext = null;" before the first call to EndExecute. But now, you can't update...
Yes, I'm in a WinForms app, and DoAuthentication function does update some visual controls from form. So, it looks like ae.SyncContext = null is not a good...
Eugen Rata
eugen.rata@...
Feb 2, 2009 10:57 pm
326
OK, I recommend this: * Do not touch the SyncContext property of the AE. * In DoAuthentication, issue your 1st async...
Just to confirm. A fix for falsly detecting deadlock is not in this latest release. Right? Kevin...
rkevinburton@...
Feb 4, 2009 12:35 am
328
That’s right. The fix is not trivial and at this time I do not intend to fix it because not enough people are having trouble with it (sorry). -- Jeffrey...
Howdy, Just downloaded your Feb distribution. I am able to compile the WindowsForms sample BUT ... when executing I get a NULLException Here... foreach (String...
Which variable is null? Can I get a stack trace? -- Jeffrey Richter (http://Wintellect.com<http://wintellect.com/>) From: PowerThreading@yahoogroups.com...
Jeff, Thanks for the fix. I was seeing the same exception when calling ae.End with a discard group, and calling EnableDebugSupport fixed the problem. Vern ... ...
Hey, I need some help understanding the typed AsyncEnumerator, in the context of a Silverlight app (if that matters). My main scenario is that I have a WCF...
You can't perform your operation asynchronously and synchronously at the same time. If you need the result of DoWork before continuing, then you might as well...
Scenario: I only want the last sent WCF request to be processed. Overall question: Is it possible to use Cancel with the Events async pattern (instead of the...
The problem here is that you are canceling the AsyncEnumerator but the event is still firing. Since the event fires, it notifies my AE which then can't notify...
I'd like to evaluate the library, but the sample solutions and projects are for Visual Studio 2008, and cannot be opened with Visual Studio 2005. This and the...
I do not have VS 2005 projects but you could create a new solution, create projects and then add the CS files to the projects. I don't know what bug you are...
Can you clarify where that would go in the code? Do you have an example of doing this? I see example code of you using discard and cancel with the BeginXxx ...
You are already calling End in the line where you call PrepareOperation. Change ae.End() to ae.End(0, eventArgsFactory.EndInvoke) After you cancel an AE...
Hello Richter & PWT group ... if your PTL is open source ... i'd be able to use it, otherwise there are some obstacles ...however helpful the PTL may be ... it...
There is a sample in the AsyncEnumerator-Silverlight\Flickr directory. See the Page.xaml.cs file. You should uncomment the "#define AsyncEnumerator" line at...
Hi Jeffrey, Thanks very much for making your library available. It really is a simpler way of writing asynchronous code. I have attempted to take some existing...