[IGSTK-Users] Serial Communication problem in release

Patrick Cheng cheng at isis.georgetown.edu
Mon Apr 14 14:05:03 EDT 2008


Good, I will go ahead and submit the fix and close the bug.

Thank you for testing it out.

Patrick

sebastian ordas wrote:
> hi Patrick,
> 
> now it works!
> 
> sebastian
> 
> On Mon, Apr 14, 2008 at 7:33 PM, Patrick Cheng 
> <cheng at isis.georgetown.edu <mailto:cheng at isis.georgetown.edu>> wrote:
> 
>     Hi Sebastian and Andinet,
> 
>     Thank you for the discussion about this issue.
> 
>     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 .
> 
>     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.
> 
> 
>     Thank you,
> 
>     Patrick
> 
> 
>     sebastian ordas wrote:
> 
>         Hi Andinet,
>          
>            We just run the igstkPolarisTrackerTest4 on IGSTK VS-2003 Release
>            build and
>            everything went well. I am a bit confused why you are having the
>            problem.
> 
> 
>         but .. are you checking the return error value from
>         "serialComm->OpenCommunication()" ?
> 
>         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.
>          
> 
> 
>            Anyways, I will follow up this issue with Patrick Cheng next week
>            since he had
>            similar problem in the past. We will update you our findings.
> 
> 
>         fine, keep me posted. In the meanwhile I will continue studying
>         the tracker code, state machines, etc.
>         I suspect the error comes from not properly running or setting
>         my apps and tests.
> 
>            PS: I noticed you got the the Flock of birds  code to work in
>         the new
>            tracker architecture. That is great! Let us know if you encounter
>            any other problems,
> 
> 
>         It's just a first version. If you find some time, could you
>         please check the code?
> 
>         have a nice weekend,
> 
>         Sebastian
> 
> 



More information about the IGSTK-Users mailing list