<?xml version="1.0" encoding="ISO-8859-1" ?><rss version="2.0">
<channel>
    <title>RoboRealm Forum</title>
    <link>http://www.RoboRealm.com/</link>
    <description>The newest forum threads.</description>
    <lastBuildDate>Tue, 30 Nov 1999 00:11:00 EST</lastBuildDate>
    <language>en-us</language>
    <copyright>Copyright: (C) RoboRealm, http://www.RoboRealm.com/</copyright>
    <docs>http://www.RoboRealm.com/</docs>

    <item>
        <title>No Title</title>
        <description>
        Hi STeven,&lt;br&gt;&lt;br&gt;Many thanks for the hack.&amp;nbsp;&amp;nbsp;The reason I was trying out the COM version of the API was because I was having some difficulty using the C# version of the API.&amp;nbsp;&amp;nbsp;As I posted a while back, I was occasionally and randomly getting black lines at the top of my bitmaps when using the C# getImage function.&amp;nbsp;&amp;nbsp;However, I just now downloaded the latest API zip from your website and there have been some changes since I last downloaded it.&amp;nbsp;&amp;nbsp;In particular, the waitImage() method now takes a timeout argument which my old version does not.&amp;nbsp;&amp;nbsp;The good news is that by setting the timeout value to 1, my &quot;black lines problem&quot; has disappeared!&amp;nbsp;&amp;nbsp;So I will go back to using the C# API and I think I am good to go.&lt;br&gt;&lt;br&gt;--patrick&lt;br&gt;&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3383</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3383</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>No Title</title>
        <description>
        Patrick,&lt;br&gt;&lt;br&gt;Not sure why but for some reason that routine is treating width and height like a short (16 bits) but assigning it to an int (32 bits). Seems that something strange is going on in the C# marshaling of that COM object.&lt;br&gt;&lt;br&gt;I&apos;d recommend using the C# API routines provided in the examples download. That allows for much more direct C# integration as the API is written in C#.&lt;br&gt;&lt;br&gt;If not you can use the following to *hack* around this error but ignoring the incorrect upper 16 bits by anding the result with 65535 as in &lt;br&gt;&lt;br&gt;Console.WriteLine(dimension + &quot; : &quot; + (((int)width)&amp;65535) + &quot; x &quot; + ((int)height&amp;65535));&lt;br&gt;&lt;br&gt;which produces the correct image dimension (at least in our tests).&lt;br&gt;&lt;br&gt;Thanks for zipping your example ... makes it much easier to understand your error!&lt;br&gt;&lt;br&gt;STeven.&lt;br&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3383</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3383</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
    <item>
        <title>GetImage function in RR_COM_API.dll broken?</title>
        <description>
        Hi STeven,&lt;br&gt;&lt;br&gt;I am having trouble getting the GetImage function to work properly in RR version 2.2.9.&amp;nbsp;&amp;nbsp;I am using C# and Visual Studio 2005 and I am referencing the RR_COM_API.dll included in the RR package.&amp;nbsp;&amp;nbsp;I have also run regsvr32 on the RR_COM_API.dll.&amp;nbsp;&amp;nbsp;I am simply trying to get the image bytes from RoboRealm so I convert them into a Bitmap and do some analysis on the raw pixels.&lt;br&gt;&lt;br&gt;RR is up and running before I execute my test C# program and the API Server box is checked and running on port 6060 with timeout 0 and number of threads 1.&amp;nbsp;&amp;nbsp;The only module I am running in RoboRealm is Reception_Quality so I have a variable to test from my C# program.&amp;nbsp;&amp;nbsp;I am using a Philips webcam attached to a USB port and the video displays fine in RoboRealm at 320x240 resolution.&lt;br&gt;&lt;br&gt;My test program can successfully retrieve variables from RR using the GetVariable method.&amp;nbsp;&amp;nbsp;However, using the GetImage method returns huge numbers for the image width and height, such as 2163008 x 2228464 instead of 320x240.&lt;br&gt;&lt;br&gt;I have attached my test C# solution in case it can help you solve my problem.&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;patrick&lt;p&gt;&lt;a target=_blank href=http://www.roborealm.com/forum/download_zipfile.php?post_id=19752&amp;name=TestRR.zip&amp;zip_id=1&gt;&lt;img border=0 src=http://www.roborealm.com/images/zip_icon_small.gif&gt; TestRR.zip&lt;/a&gt;        </description>
        <link>http://www.roborealm.com/forum/index.php?thread_id=3383</link>
        <guid>http://www.roborealm.com/forum/index.php?thread_id=3383</guid>
        <pubDate>Tue, 30 Nov 1999 00:11:00 EST</pubDate>
    </item>
</channel>
</rss>
