{"id":1590,"date":"2022-08-30T15:17:48","date_gmt":"2022-08-30T15:17:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2013\/11\/27\/problem-about-microsoft-robotics-forums-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:17:48","modified_gmt":"2022-08-30T15:17:48","slug":"problem-about-microsoft-robotics-forums-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/problem-about-microsoft-robotics-forums-collection-of-common-programming-errors\/","title":{"rendered":"problem about microsoft-robotics-forums-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-concurrency-and-coordination-runtime-ccr<br \/>\nI just read this:&#8220;The CCR (and me)\u00a0does not want its users to think about threads. The CCR user guide should be more explicitbut unless you want tight thread affinity for legacy interop reasons, always assume tasks, including tasks you yield to from an iterator will run on *arbitrary* thread context. You should basically not care what thread executes your task.&#8221;Ok,&#8221;unless [&#8230;]&#8221;. However, what if we do need tight thread affinity, e.g. throw certain exceptions from the main threa<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-simulation<br \/>\nHello, \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 I have tried to copy and paste SimulatedLRF service to MySimulatedLRF service. Everything was ok. Then I have tried to copy and paste LaserRangeFinderEntity class from Entities.cs to MyLaserRangeFinderEntity. After all that, I modify some codes in MySimulatedLRF service.public class MySimulatedLRFService : svcbase.DsspServiceBase{simengine.MyLaserRangeFinderEntity _entity;void InsertEntityNotificationHandler(simengine.InsertSimulationEntity ins){_entity = (simengine.MyLaserRang<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-concurrency-and-coordination-runtime-ccr<br \/>\nI am having trouble getting any of the samples I have found on Causality working. I have written a small self containing test case, which unfortunately does not work. What am I missing? The exception still gets thrown as unhandled.using System;using System.Threading;using Microsoft.Ccr.Core;using System.Diagnostics;namespace Test.CCR.TestConsole{class Program{public static Stopwatch Sw = new Stopwatch();static void Main(string[] args){CausalityTest();}public static void CausalityTest(){Console.W<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-concurrency-and-coordination-runtime-ccr<br \/>\nI am trying to create Erlang-style supervisor trees, where a supervisor is reponsible for monitoring and restarted worker processes.\u00a0 Each worker process has a unique Id that I need to propogate back to the supervior when the worker has an unhandled exception.\u00a0 Is there any way to add do this with causalities?\u00a0 I can only get the exception to the supervisor but no &#8220;source worker id&#8221;.Any ideas?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-concurrency-and-coordination-runtime-ccr<br \/>\nHi,I have application which use CCR thread. I place Causaltiy which catch any unhandled exception.When that happen I want to terminate the application since it is not a recoverable exception.I&#8217;ve try doing so by throwing exception from the CCR exception port handler but TaskExecutionWorker.HandleException catch the exception and just log it and the thread terminates, but the application keep on running.\u00a0I can use Environment.Exit or FailFast but this does not present the user with &#8220;we<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-hardware-configuration-and-troubleshooting<br \/>\nHi,I have been using the July 2008 CTP version of MSRS.\u00a0 I have found that some of my web cameras\u00a0when used with the latest\u00a0web cam service throw an error: &#8220;Unhandled exception at 0x7e46c2ef in WebcamPipeServer.exe: 0xC0000005: Access violation reading location 0x00000023&#8221;.\u00a0 I originally posted this unde the community forum.\u00a0 I tried getting the previous version of the WebCam service to run under the July 2008 CTP.\u00a0\u00a0 This has led to a whole series of new problems.Is there a work around<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<br \/>\nmicrosoft-robotics-forums microsoft-robotics-community<br \/>\nHi,I have been using the July 2008 CTP version of MSRS.\u00a0 I have found that when I use my plder Web Cameras with the web cam service that an error is thrown: &#8220;Unhandled exception at 0x7e46c2ef in WebcamPipeServer.exe: 0xC0000005: Access violation reading location 0x00000023&#8221;.\u00a0 I could not find any other posts on this problem.\u00a0 I am unsure of how to troubleshoot this any further.\u00a0 I am going to see if I can get the previous version of the WebCam service to run under the July 2008 CTP.\u00a0Is<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.msdn.microsoft.com\/dn186180.LOGO_Win1211(id-id,MSDN.10).png\" \/><br \/>\nmsdn<\/li>\n<\/ul>\n<p id=\"rop\"><small>Originally posted 2013-11-27 11:57:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>msdn microsoft-robotics-forums microsoft-robotics-concurrency-and-coordination-runtime-ccr I just read this:&#8220;The CCR (and me)\u00a0does not want its users to think about threads. The CCR user guide should be more explicitbut unless you want tight thread affinity for legacy interop reasons, always assume tasks, including tasks you yield to from an iterator will run on *arbitrary* thread context. You should [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1590","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1590","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=1590"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/1590\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=1590"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=1590"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=1590"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}