I am receiving an O2GTableManagerStatus.TablesLoadFailed status every time I create a new instance of the O2GTableManager.
API Version 1.3.0 (Have tested the latest beta release and the problem exists there too)
I've been use the API for a while now with no problems until after this weekend. The problem is also occurring in all the sample applications that come with the API.
Here is the sample code from the PrintTable sample (this happens in all table manager samples though). The following code raises the exception:
- Code: Select all
if (managerStatus == O2GTableManagerStatus.TablesLoadFailed)
{
throw new Exception("Cannot refresh all tables of table manager");
}
Here is code in context from the sample:
- Code: Select all
session = O2GTransport.createSession();
session.useTableManager(O2GTableManagerMode.Yes, null);
SessionStatusListener statusListener = new SessionStatusListener(session, loginParams.SessionID, loginParams.Pin);
session.subscribeSessionStatus(statusListener);
statusListener.Reset();
session.login(loginParams.Login, loginParams.Password, loginParams.URL, loginParams.Connection);
if (statusListener.WaitEvents() && statusListener.Connected)
{
O2GTableManager tableManager = session.getTableManager();
O2GTableManagerStatus managerStatus = tableManager.getStatus();
while (managerStatus == O2GTableManagerStatus.TablesLoading)
{
Thread.Sleep(50);
managerStatus = tableManager.getStatus();
}
if (managerStatus == O2GTableManagerStatus.TablesLoadFailed)
{
throw new Exception("Cannot refresh all tables of table manager");
}
O2GAccountRow account = GetAccount(tableManager);
if (account == null)
throw new Exception("No valid accounts");
PrintOrders(tableManager, account.AccountID);
Console.WriteLine("Done!");
statusListener.Reset();
session.logout();
statusListener.WaitEvents();
}
session.unsubscribeSessionStatus(statusListener);
Can anybody please shed some light on the issue or has there been some breaking changes over the weekend?
Thanks,
Shaun