> > 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
<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: 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
<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
|