.NET API IsConnected property can return True before host session is ready for interaction

  • 7023155
  • 03-Jul-2018
  • 02-Oct-2018

Environment

Reflection Desktop (including Pro, for IBM, or for UNIX and OpenVMS) 16.0 or higher

Situation

The .NET API IsConnected property can sometimes return True before the host session is ready for interaction leading to a .GetText() method not returned expected data.

Resolution

Under some specific timing conditions (extremely fast PC and extremely slow Host system or Host connection), the .NET API IsConnected property can return True before the host session is ready for interaction.  While interacting with the Host session, make sure that the expected Host screen is available by reading the session data and verifying it is as expected.  After connecting the session, use screen methods "WaitForText" or "WaitForCursor"  before continuing.