![]() |
![]() ![]()
Experimental Physics and
| |||||||||||||||||||||||||||||||
|
I believe memcpy'ing a std::string might not be safe. My theory is that std::string internals changed: the underlying data is probably being automatically deallocated between sending a string on one end and getting it on the other end of a queue, since we're essentially copying bytes. It might not happen for smaller strings because their content is probably inlined in the std::string type itself. Maybe that was always the behavior, but the inlining length threshold is the thing that changed. The way I see it, you have to either keep the change you mentioned OR use a different queue that's aware of the data type it is transporting, taking ownership of the queue items (which, AFAIK, EPICS doesn't provide). Bruno On Wed, Mar 4, 2020 at 12:12 PM Wlodek, Jakub via Tech-talk <tech-talk at aps.anl.gov> wrote:
| |||||||||||||||||||||||||||||||
ANJ, 04 Mar 2020 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |