hi Patrick, <br><br>now it works!<br><br>sebastian<br><br><div class="gmail_quote">On Mon, Apr 14, 2008 at 7:33 PM, Patrick Cheng <<a href="mailto:cheng@isis.georgetown.edu">cheng@isis.georgetown.edu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Sebastian and Andinet,<br>
<br>
Thank you for the discussion about this issue.<br>
<br>
I have found the problem of the bug. Basically, the return value of serialComm->OpenCommunication() is not initialized (In OpenPort success, it forgot to set the variable to be SUCCESS). DEBUG version of the runtime library will initialize the memory to known value, but RELEASE won't do that. That's why it works under Debug but not Release .<br>
<br>
I have attached the new igstkSerialCommunication.cxx file. I have tested here under Windows + VS 2005. Let me know if this fix the bug on your platform.<br>
<br>
<br>
Thank you,<br><font color="#888888">
<br>
Patrick</font><div><div></div><div class="Wj3C7c"><br>
<br>
sebastian ordas wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Andinet,<br>
<br>
We just run the igstkPolarisTrackerTest4 on IGSTK VS-2003 Release<br>
build and<br>
everything went well. I am a bit confused why you are having the<br>
problem.<br>
<br>
<br>
but .. are you checking the return error value from "serialComm->OpenCommunication()" ?<br>
<br>
if I don't check it like in the original igstkPolarisTrackerTest4 example, the test continues and retrieves [0,0,0] coords; but that's because the FOB classes that are not completely working yet.<br>
<br>
<br>
<br>
Anyways, I will follow up this issue with Patrick Cheng next week<br>
since he had<br>
similar problem in the past. We will update you our findings.<br>
<br>
<br>
fine, keep me posted. In the meanwhile I will continue studying the tracker code, state machines, etc.<br>
I suspect the error comes from not properly running or setting my apps and tests. <br>
<br>
PS: I noticed you got the the Flock of birds code to work in the new<br>
tracker architecture. That is great! Let us know if you encounter<br>
any other problems,<br>
<br>
<br>
It's just a first version. If you find some time, could you please check the code?<br>
<br>
have a nice weekend,<br>
<br>
Sebastian<br>
</blockquote>
</div></div></blockquote></div><br>