Skip to content

[HELP]Prevent or catch the crash of c++ exception throwing #24

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

Closed
jinoschina opened this issue Dec 5, 2018 · 2 comments
Closed

[HELP]Prevent or catch the crash of c++ exception throwing #24

jinoschina opened this issue Dec 5, 2018 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@jinoschina
Copy link

jinoschina commented Dec 5, 2018

Is there any way to prevent or catch the crash of c++ exception throw while using pure c?
Such as no topic exception when calling SendMessageSync from sample "Producer.c".
Thank u very much.

@jinoschina jinoschina changed the title prevent or catch the crash of c++ exception throwing [HELP]Prevent or catch the crash of c++ exception throwing Dec 5, 2018
@vongosling vongosling added the question Further information is requested label Dec 7, 2018
@ShannonDing
Copy link
Member

Got it, the exception thrown by CPP kernel will be raised to the system if it is not handled in C API.
Currently, it is better to ensure the parameter correct as much as possible, In the next version, the exception thrown by the CPP kernel will be caught by default and returned to the caller of the C API in the form of an error code.

@vongosling vongosling added the enhancement New feature or request label Dec 7, 2018
@jinoschina
Copy link
Author

Thanks a lot for helping , may the light always be with you.

vongosling added a commit that referenced this issue Dec 12, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[ISSUE #24]Catch CPP exception and convert to the error code in C API
lizhanhui added a commit that referenced this issue Oct 14, 2021
Fix order consumer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants