From 785d6541295d1270e3be84e9271976655f1affdd Mon Sep 17 00:00:00 2001 From: mrkraimer Date: Fri, 7 Feb 2020 08:54:18 -0500 Subject: [PATCH] first attempt to fix issue 53; add example --- examples/createdestroy | 1 + src/database/pvRecord.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 160000 examples/createdestroy diff --git a/examples/createdestroy b/examples/createdestroy new file mode 160000 index 0000000..b64329f --- /dev/null +++ b/examples/createdestroy @@ -0,0 +1 @@ +Subproject commit b64329f789953dd7921d2426da3947950ccd6287 diff --git a/src/database/pvRecord.cpp b/src/database/pvRecord.cpp index ec54b59..41f7c2f 100644 --- a/src/database/pvRecord.cpp +++ b/src/database/pvRecord.cpp @@ -108,12 +108,13 @@ PVRecord::~PVRecord() if(traceLevel>0) { cout << "~PVRecord() " << recordName << endl; } - notifyClients(); +// notifyClients(); } void PVRecord::remove() { PVDatabasePtr pvDatabase(PVDatabase::getMaster()); + notifyClients(); if(pvDatabase) pvDatabase->removeRecord(shared_from_this()); pvTimeStamp.detach(); for(std::list::iterator iter = pvListenerList.begin();