I’m running into some situations (with the AAX wrapper, but possibly in other places) in which the getCurrentPosition call doesn’t fill in the CurrentPositionInfo structure. There are many possible reasons for this, but they generally center around other things that aren’t initialized. There may be underlying reasons that need addressing, but I’d like to make a simple request (actually two).
- Jules, could you please provide a simple static initialization function for CurrentPositionInfo? If there’s been a failure in GetCurrentPosition, a lot of the info fields are full of junk and vulnerable to all sorts of errors (divide-by-zero, etc). Starting out with known and safe values in CurrentPositionInfo would make that a little more trustworthy.
- And in the case of getCurrentPosition (at least in the AAX wrapper) the function always returns true–even if an internal operation has failed. Might it return false in those cases?