Tuesday, April 10, 2012

[SKYPEKIT][DM368][IPNC] Revised: the Reason of "Account::LOGOUTREASON Unknown:673000" in Tutorials

In  Starting Skypekit on DM368-IPNC - setup environment and build the 1st tutorial example, we discussed  "Account::LOGOUTREASON<Unknown:673000>" problem in end of the article.  There we introduced a workaround to reduce the chance generating this error message.


After digging into skypekit examples a little bit deeper, the root cause *might be* found because improperly trying to get "GetPropLogoutreason", in MyAccount::OnChange@tutorial_common.h.


The original implementation imply that after Account::P_STATUS fired, the Account::LOGOUTREASON has already prepared, which *might* not be true. It can only be sure after Account::P_LOGOUTREASON is fired.


To fix this, try to catch Account::P_LOGOUTREASON at MyAccount::OnChange, Then you are safe to invoke 
this->GetPropLogoutreason for the logout reason.


Note:
Sorry I cannot put the code piece here because of skypekit legal term. but it's easy to patch by yourselves even with even little of experience of skypekit.

No comments:

Post a Comment