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: pvGet in Sequence does not work with incorrect size |
From: | Dejan Kocjan via Tech-talk <[email protected]> |
To: | <[email protected]> |
Date: | Tue, 17 Sep 2019 11:38:17 +0200 (CEST) |
Hello, We found out that the difference between monitor/ca_create_subscription() and pvGet/ca_array_get_callback(), is that pvGet will fail, if number of requested elements is more than NELM of the record. While monitor will not fail. This could be solved by making sure number of requested elements does not exceed NELM, like it is already done for pvPut. Instead of reading ch->count, we should read dbch->dbCount. Cheers, Dejan |