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: | areaDetector with 'empty' array output |
From: | Phil Atkin <[email protected]> |
To: | [email protected] |
Date: | Mon, 25 Jul 2016 11:35:05 +0100 |
Hi, My areaDetector plugin has an option to generate an array containing a 'list' of events. In pseudocode, it does something like the following in the processCallbacks method: if (this->pArrays[0]) {Currently I'm experiencing a crash if there are no events in the list. pNDArrayPool->alloc returns null if count is zero. I guess this is neither surprising nor unreasonable, but it leaves me with the question of what I should (and should not) do if the list is empty. I somehow need to 'output' something, otherwise plugins downstream won't be called, will they? Thanks in advance, Phil --
![]() |