Print Page | Close Window

Minor bug in AsyncParallelTask

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2068
Printed Date: 17-Oct-2025 at 12:51pm


Topic: Minor bug in AsyncParallelTask
Posted By: jsobell
Subject: Minor bug in AsyncParallelTask
Date Posted: 16-Aug-2010 at 7:16pm
If Execute is called on an AsyncParallelTask object without adding any AsyncQuery objects then the Execute Action is never called.
This is most apparent in debugging, when you comment out the chained commands. Also, if you are adding queries through code and some/all are optional, then this becomes a serious problem unless you insert check code.
A check should be made in Execute(), and if there are no async queries then the action should be called immediately.
 
It's funny, when I wrote my own implementation of this feature (before switching to using DF) I had exactly the same bug in my own code :)
 



Replies:
Posted By: ting
Date Posted: 16-Aug-2010 at 7:19pm

Confirmed.  This will be fixed in the next release.




Print Page | Close Window