Experimental Physics and Industrial Control System
|
Andrew Johnson wrote:
[...], but assert() calls may legally appear
in places where the assertion can only fire if there is a real bug in the
code.
I agree. That's exactly my point. Assertions should fire on programming
errors, but not on run-time problems like unavailable memory.
So calling assert() on the result of epicsEventWait() is OK because that
only fails if the event id is invalid which is a programming error.
Calling assert on the result of epicsEventCreate() is not OK.
Dirk
- References:
- caGateway crashes / use of *MustSucceed functions Dirk Zimoch
- Re: caGateway crashes / use of *MustSucceed functions Benjamin Franksen
- Re: caGateway crashes / use of *MustSucceed functions J. Lewis Muir
- Re: caGateway crashes / use of *MustSucceed functions Andrew Johnson
- Navigate by Date:
- Prev:
Re: problem with gateway and softIoc running on same server Ralph Lange
- Next:
CA beacon routing error S_errno_ECONNREFUSED J. Lewis Muir
- 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
- Navigate by Thread:
- Prev:
Re: caGateway crashes / use of *MustSucceed functions Andrew Johnson
- Next:
Visit of SLAC/ALS control room? emmanuel_mayssat
- 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
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|