From 1c091779a8aae92e6136a831a94917da3bfbbeac Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 13 Dec 1996 00:11:32 +0000 Subject: [PATCH] fixed bad data ref bug --- src/cas/example/simple/exVectorPV.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/cas/example/simple/exVectorPV.cc b/src/cas/example/simple/exVectorPV.cc index aa2ab7618..d855635a6 100644 --- a/src/cas/example/simple/exVectorPV.cc +++ b/src/cas/example/simple/exVectorPV.cc @@ -73,6 +73,12 @@ void exVectorPV::scan() pDD->unreference(); } + // + // install the buffer into the DD + // (do this before we increment pF) + // + *pDD = pF; + // // double check for reasonable bounds on the // current value @@ -104,11 +110,6 @@ void exVectorPV::scan() *(pF++) = newValue; } - // - // install the buffer into the DD - // - *pDD = pF; - status = this->update (*pDD); if (status) { errMessage (status, "scan update failed\n");