<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Coroutine in VB.NET problem</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce 2010 : Coroutine in VB.NET problem</description>
  <pubDate>Thu, 23 May 2013 09:47:14 -700</pubDate>
  <lastBuildDate>Tue, 26 Apr 2011 13:27:50 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=2624</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Coroutine in VB.NET problem : Hi Silvio,  Once again thank you...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10545#10545</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1131" rel="nofollow">THWI</a><br /><strong>Subject:</strong> 2624<br /><strong>Posted:</strong> 26-Apr-2011 at 1:27pm<br /><br />Hi Silvio,<br /><br />Once again thank you for your engagement. <br />Upgrade to 6.0.9 did solve my problem with the<br />Coroutine.Start.<br /><br />Regards Thorbjørn<br />]]>
   </description>
   <pubDate>Tue, 26 Apr 2011 13:27:50 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10545#10545</guid>
  </item> 
  <item>
   <title>Coroutine in VB.NET problem : Hi THWI,  So, the errors youwere...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10544#10544</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2624<br /><strong>Posted:</strong> 26-Apr-2011 at 1:17pm<br /><br /><DIV>Hi THWI,</DIV><DIV>&nbsp;</DIV><DIV>So, the errors you&nbsp;were getting are in fact compilation errors?</DIV><DIV>I did test with DeVForce6.0.9. </DIV><DIV>Did upgrading to 6.0.9 solved your issue?</DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;&nbsp; Silvio.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Apr 2011 13:17:47 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10544#10544</guid>
  </item> 
  <item>
   <title>Coroutine in VB.NET problem : Hi Silvio and many thanks for...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10535#10535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1131" rel="nofollow">THWI</a><br /><strong>Subject:</strong> 2624<br /><strong>Posted:</strong> 26-Apr-2011 at 1:04am<br /><br />Hi Silvio and many thanks for your reply.<DIV>&nbsp;</DIV><DIV>As you tell me that the code snippet compiles ok at your computer, I checked out my version of DevForce.</DIV><DIV>My version is 6.0.8, and I suppose I will need 6.0.9 which contains additional overloads of Croutine.Start.</DIV><DIV>&nbsp;</DIV><DIV>Regards THWI.</DIV>]]>
   </description>
   <pubDate>Tue, 26 Apr 2011 01:04:14 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10535#10535</guid>
  </item> 
  <item>
   <title>Coroutine in VB.NET problem : Hi THWI,   The snippet you provided...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10511#10511</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=892" rel="nofollow">sbelini</a><br /><strong>Subject:</strong> 2624<br /><strong>Posted:</strong> 21-Apr-2011 at 11:51am<br /><br /><P>&nbsp;Hi THWI, </P><DIV></DIV><DIV>The snippet you provided looks ok.</DIV><DIV>It also executes without problems here.</DIV><DIV><DIV>Here's a simple solution with your snippet where everything works fine: <a href="http://www.ideablade.com/forum/uploads/892/VBCoroutine.zip" target="_blank">uploads/892/VBCoroutine.zip</A></DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Are you getting this error during compilation or at runtime? What version of DevForce are you running?</DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Can you upload a simple solution reproducing the issue?</DIV><DIV>&nbsp;</DIV><DIV>Silvio.</DIV>]]>
   </description>
   <pubDate>Thu, 21 Apr 2011 11:51:20 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10511#10511</guid>
  </item> 
  <item>
   <title>Coroutine in VB.NET problem :   Has implemented exactly as...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10481#10481</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=1131" rel="nofollow">THWI</a><br /><strong>Subject:</strong> 2624<br /><strong>Posted:</strong> 20-Apr-2011 at 12:39am<br /><br /><FONT color=#000000 face="Georgia, Times New Roman, Times, serif"><DIV><strong></strong>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Has implemented exactly as described, but get this error:</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Error&nbsp;3&nbsp;Overload resolution failed because no accessible 'Start' can be called without a narrowing conversion:<BR>&nbsp;'Public Shared Function Start(<BR>&nbsp;&nbsp;coroutine As System.Func(Of System.Collections.Generic.IEnumerable(Of IdeaBlade.EntityModel.INotifyCompleted)), <BR>&nbsp;&nbsp;&#091;completedHandler As System.Action(Of IdeaBlade.EntityModel.CoroutineOperation) = Nothing&#093;) <BR>&nbsp;&nbsp;As IdeaBlade.EntityModel.CoroutineOperation': <BR>&nbsp;&nbsp;Argument matching parameter 'coroutine' narrows <BR>&nbsp;&nbsp;&nbsp;from 'System.Collections.Generic.IEnumerable(Of System.Func(Of IdeaBlade.EntityModel.INotifyCompleted))' <BR>&nbsp;&nbsp;&nbsp;to&nbsp;&nbsp; 'System.Func(Of System.Collections.Generic.IEnumerable(Of IdeaBlade.EntityModel.INotifyCompleted))'.&nbsp;<BR></strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>MY CODE IS AS FOLLOWS:</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Can someone tell me whats wrong.</strong></FONT></DIV><DIV></FONT><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Function LoadAll(ByVal manager As myEntityManager) As IEnumerable(Of Func(Of INotifyCompleted))</strong></FONT></DIV><DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>' List of asynchronous functions for the Coroutine to execute serially</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Dim funcList = New List(Of Func(Of INotifyCompleted))</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>' Get all</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Dim loadFnc As Func(Of INotifyCompleted) = _</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Function()</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>&nbsp;&nbsp;&nbsp; Return manager.Customers.ExecuteAsync() ' return an INotifyCompleted</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>End Function</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>funcList.Add(loadFnc)</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>' return the list</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>Return funcList</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>End Function</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>' Sequence from my main routine</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong></strong></FONT>&nbsp;</DIV><DIV><strong><FONT size=2><FONT color=#000000 face="Georgia, Times New Roman, Times, serif">Dim op = Coroutine.Start(LoadAll(_eMgr))</FONT></FONT></strong></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>AddHandler op.Completed, _</strong></FONT></DIV><DIV><strong><FONT size=2><FONT color=#000000 face="Georgia, Times New Roman, Times, serif">&nbsp; Sub(s As Object, e As CoroutineCompletedEventArgs)</FONT></FONT></strong></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>&nbsp;&nbsp;&nbsp; If e.CompletedSuccessfully Then</strong></FONT></DIV><DIV><strong><FONT size=2><FONT color=#000000 face="Georgia, Times New Roman, Times, serif">&nbsp;&nbsp;&nbsp; &nbsp; Debug.Write("All were loaded")</FONT></FONT></strong></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>&nbsp;&nbsp;&nbsp; Else</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.Write(e.Error.Message)</strong></FONT></DIV><DIV><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif"><strong>&nbsp;&nbsp;&nbsp; End If</strong></FONT></DIV><DIV><strong><FONT color=#000000 size=2 face="Georgia, Times New Roman, Times, serif">&nbsp; End sub</FONT><FONT color=#0000ff face="M&#111;ngolian Baiti"><FONT color=#0000ff face="M&#111;ngolian Baiti"><FONT color=#0000ff face="M&#111;ngolian Baiti"></DIV></FONT></FONT></FONT><FONT size=2 face="M&#111;ngolian Baiti"><FONT size=2 face="M&#111;ngolian Baiti"></FONT></FONT></strong>]]>
   </description>
   <pubDate>Wed, 20 Apr 2011 00:39:15 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=2624&amp;PID=10481#10481</guid>
  </item> 
 </channel>
</rss>