resTable::removeAll() does not reset the item count
Bug #541361 reported by
vstark
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
Jeff Hill |
Bug Description
resTable:
A call to numEntriesInstalled returns the last number of items in the table after a removeAll().
Additional information:
In resourceLib.h the method removeAll() should do a this->nInUse = 0
Original Mantis Bug: mantis-333
http://
To post a comment you must log in.
committed a fix.
cvs diff -wb -- resourceLib.h ======= ======= ======= ======= ======= ======= ======= ======= ==== epicsmgr/ cvsroot/ epics/base/ src/libCom/ cxxTemplates/ resourceLib. h,v
destinati on.add ( *pItem );
Index: resourceLib.h
=======
RCS file: /net/phoebus/
retrieving revision 1.103.2.4
diff -u -b -w -b -r1.103.2.4 resourceLib.h
--- resourceLib.h 15 Mar 2006 19:02:15 -0000 1.103.2.4
+++ resourceLib.h 4 Mar 2009 21:58:07 -0000
@@ -335,6 +335,7 @@
}
}
+ this->nInUse = 0;
}
//