Skip to content

TCP Client Issue in Setup #2134

Answered by zimri-leisher
mosa11aei asked this question in Q&A
Discussion options

You must be logged in to vote

Funnily enough, this is a very similar issue to another issue that was just posted. In general, this problem is caused by passing a buffer to StaticMemory's bufferDeallocate port that didn't come from StaticMemory's bufferAllocate port. You can think of Buffers as being required to follow a loop, starting from StaticMemory (or my preferred alternative, BufferManager), going through various components, and ending up at StaticMemory/BufferManager again.

I would take a look at the setup and my answer for #3079 .

In general, the flow you want is:

  • Inside component X that wants to send something:
    • Get a buffer from a buffer manager/static memory
    • Serialize your data into the buffer
    • Send the buf…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mosa11aei
Comment options

Comment options

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

@zimri-leisher
Comment options

Answer selected by thomas-bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants