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

Different behavior of push services in debug and relaese mode #42

Closed
fraunhofer-iis-bot opened this issue Mar 29, 2023 · 2 comments
Closed
Assignees
Labels
bug Something isn't working in_review
Milestone

Comments

@fraunhofer-iis-bot
Copy link
Collaborator

In GitLab by @bmi on Mar 29, 2023, 11:25

The error occurs when trying to perform a subscription/unsubscription to a service that does not exist

japi_pushsrv_subscribe line 149, this behaviour is allowed and will capture later in the code with an error message but in debug mode the Assertion will brake the program

the same problem exist with unsubscribe

@fraunhofer-iis-bot
Copy link
Collaborator Author

In GitLab by @vornkat-iis on Jul 2, 2023, 21:56

I think this is intended by the original author. The assert function used in many functions does nothing in release mode but catches bad parameters early in execution while debugging. See also https://cplusplus.com/reference/cassert/assert/

@fraunhofer-iis-bot
Copy link
Collaborator Author

In GitLab by @vornkat-iis on Jul 4, 2023, 14:02

created branch 42-different-behavior-of-push-services-in-debug-and-relese-mode to address this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working in_review
Projects
None yet
Development

No branches or pull requests

2 participants