View Issue Details

IDProjectCategoryView StatusLast Update
0000810SkyChart1-Softwarepublic11-09-03 14:48
ReporterFerran Casarramona Assigned ToPatrick Chevalley  
PrioritynormalSeveritycrashReproducibilityhave not tried
Status closedResolutionfixed 
PlatformAllOSAllOS VersionAll
Product Version3.3 SVN 
Target Version3.4Fixed in Version3.3 SVN 
Summary0000810: Bug in cu_indiclient.pas
DescriptionI'm developing an Indi client (to control a dome) with Lazarus and I'm using your cu_indiclient.pas module.

I found a problem in this module:
All command procedures ('Slew', 'AbortSlew', ...) start with 'if FCurrentdevice='' then exit;' sentence. But, if 'FCurrentdevice' is used during the parse of device responses, so when Indiserver have more various devices FCurrentdevice can change from time to time.

At 'XmlStartTag' procedure, if device is the same of FWantDevice, the FCurrentDevice is set to this device, otherwise is set to ''. So if an Indiserver has more devices it could be than FCurrentDevice is '' and no command could be send.

I think for command procedures it must be used 'FWantDevice' instead of 'FCurrentdevice'
Steps To ReproduceStart Indiserver with 2 or more devices. Put the telescope device in the second place:
indiserver indi_anydevice indi_lx200

Try to use the telescope. You can connect but can't send commands
TagsNo tags attached.

Activities

Patrick Chevalley

11-06-04 11:27

administrator   ~0001625

Thank you for the very detailed description of the problem.
This is fixed by revision 1736:
http://svn.origo.ethz.ch/viewvc/skychart?view=rev&revision=1736

Issue History

Date Modified Username Field Change
11-03-06 21:43 Ferran Casarramona New Issue
11-03-30 08:34 Patrick Chevalley Assigned To => Patrick Chevalley
11-03-30 08:34 Patrick Chevalley Status new => assigned
11-03-30 08:34 Patrick Chevalley Target Version 0.3.0 => 3.4
11-06-04 11:27 Patrick Chevalley Note Added: 0001625
11-06-04 11:27 Patrick Chevalley Status assigned => resolved
11-06-04 11:27 Patrick Chevalley Resolution open => fixed
11-06-04 11:27 Patrick Chevalley Fixed in Version 0.3.0 => 3.3 SVN
11-09-03 14:48 Patrick Chevalley Status resolved => closed