Skip to content

Discuss test project #2

Answered by lukebakken
lukebakken asked this question in Q&A
Aug 29, 2024 · 3 comments · 8 replies
Discussion options

You must be logged in to vote

@gradx - you must not use the body outside of the Received event handler. If you do, it must be copied, as the memory is reclaimed when the event handler exits

/~https://github.com/lukebakken/rabbitmq-dotnet-client-1660/pull/3/files#diff-80abe01ed5555f837d89dda4ebefde408b654d8c75321261236314400e4e3299R85

I'm 99.99% certain this is the cause of your issue. It's probably not as well-documented as it should be.

If I have time I may have some suggestions for interacting with the consumer that could work better than using reset events.

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@gradx
Comment options

gradx Aug 29, 2024
Collaborator

@lukebakken
Comment options

lukebakken Aug 29, 2024
Maintainer Author

Comment options

You must be logged in to vote
6 replies
@gradx
Comment options

gradx Aug 29, 2024
Collaborator

@lukebakken
Comment options

lukebakken Aug 29, 2024
Maintainer Author

@gradx
Comment options

gradx Aug 29, 2024
Collaborator

@lukebakken
Comment options

lukebakken Aug 29, 2024
Maintainer Author

@gradx
Comment options

gradx Aug 29, 2024
Collaborator

Comment options

You must be logged in to vote
0 replies
Answer selected by gradx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants