Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The message contents must always remain in scope since the data is actually sent by reference instead of by value. In other words, data sent is not copied. You might consider using dynamically allocated memory as described in Chapter 17, “Memory Management” Memory Management API Changes. Alternatively, you can pass a pointer to a global variable, a global data structure, a global array, or a function, etc.