EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Bug in dbGetNElements
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Tue, 31 Mar 2009 13:28:29 +0100
>From the docs:

 15.4.5.6 dbGetNelements

 Get number of elements in a field.

 Format:

   long dbGetNelements(struct link *plink,long *nelements);

 This sets *nelements to the number of elements in the field referenced by
 plink.

This is not what happens (using 3.14.8.2). The correct number of elements 
gets returned initially, right after the link is initialized. Subsequent 
changes in the number of elements are ignored, that is, dbGetNelements 
always returns the same number, until the link gets re-initialized.

And no, I did not expect this, though I probably should have... considering 
all the other things that don't work with array fields.

Ben
-- 
"TDD replaces a type checker in Ruby in the same way that a
strong drink replaces sorrows."       (byorgey on #haskell)

Any text below this line has automatically been added by the
mail server and does not necessarily represent my personal opinion.
-------------------------------------------------------------------

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH   
Glienicker Straße 100, 14109 Berlin   
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph   
Stellvertretende Vorsitzende: Dr. Jutta Koch-Unterseher   
Geschäftsführer: Prof. Dr. Anke Rita Pyzalla, Prof. Dr. Dr. h.c. Wolfgang Eberhardt, Dr. Ulrich Breuer   
Sitz der Gesellschaft: Berlin Handelsregister: AG Charlottenburg, 89 HRB 5583   

Information:   
Durch die Fusion mit dem ehemaligen Hahn-Meitner-Institut (HMI) ist   
BESSY nun Teil des neuen Helmholtz-Zentrum Berlin für Materialien   
und Energie (HZB).    

By the merger with the former Hahn-Meitner-Institut (HMI), BESSY   
became part of the new Helmholtz-Zentrum Berlin für Materialien und   
Energie (HZB).   

Disclaimer automatically attached by the E-Mail Security Appliance   
mail0.bessy.de 03/31/09 at Helmholtz-Zentrum Berlin GmbH. 


Navigate by Date:
Prev: RE: connections with pasynOctetSyncIO->connect Mark Rivers
Next: EPICS Meeting Vancouver Rolf Keitel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: devLib Davidsaver, Michael
Next: EPICS Meeting Vancouver Rolf Keitel
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·