first attempt to fix issue 53; add example

This commit is contained in:
mrkraimer
2020-02-07 08:54:18 -05:00
parent 22ce4440b7
commit 785d654129
2 changed files with 3 additions and 1 deletions

Submodule examples/createdestroy added at b64329f789

View File

@ -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<PVListenerWPtr>::iterator iter = pvListenerList.begin();