cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to cast TableOwner in async mode?

RLEECI
6-Contributor

How to cast TableOwner in async mode?

So 2 have two models in 2 different modes: syn and asyn

 

 model = pfcSession.GetCurrentSession().GetCurrentModel();
  connection = pfcAsyncConnection.AsyncConnection_Connect(null, null, null, 20);
                model = connection.GetSession().GetCurrentModel();

 

I have checked and both models are valid and I have no issue casting the TableOwner tableowner from the two models. However, I cannot get a list of tables with async mode

 

TableOwner tableOwner = (TableOwner)model;
                if(tableOwner!=null)
                {
                    tableOwner.ListTables().getarraysize();
                }

 

tableOwner is not null but ListTables() actually returns null error. I am not sure if I do not cast it properly or I need something special to make it work.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RLEECI
6-Contributor
(To:RLEECI)

stupid me, I cannot use both jlink syn and asyn jar in the same project. 

View solution in original post

1 REPLY 1
RLEECI
6-Contributor
(To:RLEECI)

stupid me, I cannot use both jlink syn and asyn jar in the same project. 

Top Tags