use weak pointer for callbacks

This commit is contained in:
mrkraimer
2016-01-07 07:44:08 -05:00
parent ca3573291a
commit 4ac867ec0f
8 changed files with 188 additions and 96 deletions

View File

@@ -13,6 +13,7 @@
#include <iostream>
using namespace epics::pvData;
using namespace std;
static StructureConstPtr makeDeviceStructure()
@@ -81,6 +82,14 @@ int main (int argc, char *argv[])
usage();
return 1;
}
if(argc<2)
{
std::cerr << APP_NAME << " requires at least 2 arguments."
<< std::endl;
usage();
return 1;
}
// Start the pvAccess client side.
epics::pvAccess::ClientFactory::start();