1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 <2020> 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 <2020> 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: String size limit for Eiger FileWriter when compiling with g++ > 5.2 |
From: | "Johnson, Andrew N. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Wlodek, Jakub" <jwlodek at bnl.gov> |
Cc: | EPICS tech-talk <tech-talk at aps.anl.gov> |
Date: | Wed, 4 Mar 2020 18:37:54 +0000 |
Hi Jakub,
Never put a std::string (or any other C++ standard library template object) onto an epicsMessageQueue, as Bruno said. Your fix of replacing that with a fixed-size char array is probably the best solution for now, the libCom APIs are mostly designed
for C data types and POD (Plain Old Data) structures. Wherever you found that code, please file a bug report against the module.
Thanks,
- Andrew
--
Complexity comes for free, Simplicity you have to work for.
|