Note, as a workaround I also tried to always call Account::setRegistration(false) before Account::~Account() is called. But then this error is always printed: pjsua_acc.c ..Unable to create/send REGISTER: Object is busy (PJSIP_EBUSY) [status=171001] On Fri, Oct 7, 2016 at 11:07 AM, b17 c0de <b17c0de@xxxxxxxxx> wrote: > Hi, > When I delete a pj::Account that is registered, the following is > printed in the console: > > endpoint.cpp !..Error: cannot find Account instance for account id X > in on_reg_started() > > This happens because Account::~Account() does: > > pjsua_acc_set_user_data(id, NULL); > pjsua_acc_del(id); > > and pjsua_acc_del(id) calls Endpoint::on_reg_started(id, PJ_FALSE) > > This appears to be harmless. Should the error print simply be removed? > Or is there a better solution to avoiding this error? > > Thanks, > Kal _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org