Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling pjsua_create() after pjsua_destroy() fails #29

Closed
pjsipbot opened this issue Nov 28, 2006 · 0 comments
Closed

Calling pjsua_create() after pjsua_destroy() fails #29

pjsipbot opened this issue Nov 28, 2006 · 0 comments

Comments

@pjsipbot
Copy link
Collaborator

2006-11-28 08:13:16: @bennylp created the issue on trac ticket 29

Some application want to be able to call pjsua_create() after calling pjsua_destroy(). Currently this sequence fails because the error subsystem has already been registered and subsequent registration will be refused.

The solution perhaps is to clear the error subsystem once pj_shutdown() is called.


2006-11-28 10:50:53: @bennylp changed status from new to assigned


2006-11-28 10:50:53: @bennylp commented

Few things that should be cleared by pj_shutdown():

  • pj/errno.c should provide a function to clear all currently registered error handlers (e.g. pj_errno_clear_handlers(), which set err_msg_hnd_cnt to zero).
  • the exception_cleanup() function in pj/except.c should also clear exception_id_names array (if PJ_HAS_EXCEPTION_NAMES is defined, of course).

2006-11-28 10:52:18: @bennylp commented

Replying to [comment:1 bennylp]:

.. and pj_errno_clear_handlers() should be called by pj_shutdown(), of course.


2006-12-01 11:24:24: @bennylp changed status from assigned to closed


2006-12-01 11:24:24: @bennylp set resolution to fixed


2006-12-01 11:24:24: @bennylp commented

Fixed in r839

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants