EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: EPICS V4 question
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Thu, 13 Oct 2016 08:36:16 -0400
On 10/13/2016 06:37 AM, Benjamin Franksen wrote:
> On 09.10.2016 20:37, Michael Davidsaver wrote:
>>  For various annoying reasons it is *not* sufficient to let a connected
>> Channel be destroyed (as in c++ destructor).  Calling Channel::destory()
>> is mandatory.
> 
> Hi Michael
> 
> out of curiosity: could you elaborate on that? Has this to do with
> possible exceptions that may be thrown when disconnecting a channel?
> (Throwing out of a destructor is commonly seen as something to be
> avoided.) Is this different in the Java implementation?

As I recall, the client context is holding a strong reference to the
channel, and destroy() causes this to be released.  Careful application
of weak_ptr<> could avoid this.


References:
EPICS V4 question Mark Rivers
Re: EPICS V4 question Michael Davidsaver
Re: EPICS V4 question Benjamin Franksen

Navigate by Date:
Prev: Re: EPICS V4 question Benjamin Franksen
Next: Granville-Phillips 830 Vacuum Quality Monitor Sue Witherspoon
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS V4 question Benjamin Franksen
Next: CSS 4.33 / Mars 4.5.2 / BOY not found Alex Squitieri
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 13 Oct 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·