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: Ken Evans <[email protected]>
To: [email protected]
Cc: [email protected], [email protected]
Date: Sat, 20 Nov 1999 17:29:03 -0600 (CST)
>  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 haven't changed it on the grounds that (1)
it (up to now) didn't seem to be causing problems and (2) "Never
change a working code ...".  It looks like bad coding proctice, and it
would be nice to eliminate it, even if it weren't continually calling
CA as Noboru says.

      Unless someone tells me it is a known trick and has a purpose, I
will eliminate it (in the next release).

     -Ken



Replies:
RE: empty channel field in medm/dm2k Jeff Hill

Navigate by Date:
Prev: empty channel field in medm/dm2k Noboru Yamamoto
Next: cvs check out failed. Noboru Yamamoto
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: empty channel field in medm/dm2k Noboru Yamamoto
Next: RE: empty channel field in medm/dm2k Jeff Hill
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 ·