EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: empty channel field in medm/dm2k
From: [email protected] (Jeff Hill)
To: "Ken Evans" <[email protected]>, <[email protected]>
Date: Mon, 22 Nov 1999 10:18:54 -0700
> >  In the source code of medm, I found the following code segment 
> > in medm/medm/medmCA.c file.  
> > ==================================================================
> >     if (strlen(name) > (size_t)0) {
> >         status = ca_build_and_connect(name,TYPENOTCONN,0,
> >           &(pCh->chid),NULL,medmConnectEventCb,pCh);
> >     } else {
> >         status = ca_build_and_connect(" ",TYPENOTCONN,0,
> >           &(pCh->chid),NULL,medmConnectEventCb,pCh);
> >     }
> > ==================================================================
> 
>      Yes, I have noticed.  It was that way when I got it.  I think it
> is a hack to avoid some kind of error, but I don't know what.  Perhaps
> it is to force CA to allocate the usual structures instead of properly
> handling the situation.  

I suspect that the original Author was attempting to circumvent the error 
returned from the CA client library when you create a channel with a zero 
length name.

Jeff


References:
Re: empty channel field in medm/dm2k Ken Evans

Navigate by Date:
Prev: cvs check out failed. Noboru Yamamoto
Next: Re: empty channel field in medm/dm2k Ben-chin K. Cha
Index: 1994  1995  1996  1997  1998  <19992000  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: empty channel field in medm/dm2k Ken Evans
Next: Re: empty channel field in medm/dm2k Ben-chin K. Cha
Index: 1994  1995  1996  1997  1998  <19992000  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, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·