Experimental Physics and Industrial Control System
Subject: |
Bug in initDatabase() |
From: |
Patavalis Nikos <[email protected]> |
Date: |
Wed, 12 Jul 1995 00:46:09 +0300 (EET DST) |
Greg Greence wrote:
> The problem is in initDatabase() which is called by iocInit()...
> The problem is in the first call to ellFirst(). If there are no
> records defined for a specific type, then the field precLoc->preclist
> is null. However, the call to ellFirst() does not check for this...
I'm using a rather old EPICS release (R3.12.0Beta1) and the problem
you are reporting has been corrected!
Just after entering the loop that goes for every record type,
and almost before doing anything else (certainly before calling
ellFirst()) there is a check:
.
.
.
/* For every record type ... */
for(i=0; i< (precHeader->number); i++) {
/* Get pointer to location structure for instances of
record type 'i' */
if (!(precLoc = precHeader->papRecLoc[i]))continue;
if (!precLoc->preclist) continue;
.
.
.
I think this solves the problem...
What release are you using?
Nick Patavalis.
([email protected])
University of Athens.
Athens, Jul 12, 1995.
- Navigate by Date:
- Prev:
Bug with initDatabase() greene%denali.UUCP
- Next:
Re: Bug with initDatabase() Marty Kraimer
- 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: Bug with initDatabase() greene%denali.UUCP
- Next:
free_gdct - does anyone have a Sun machine I can log into for a few hours?? 415
- 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