@ -59,7 +59,6 @@ Context::Context (Process* p) : d (new DFContextShared())
Context::~Context()
{
cerr << "called Context destructor" << endl;
Detach();
delete d;
}
@ -123,7 +123,6 @@ Maps::Maps(DFContextShared* _d)
Maps::~Maps()
cerr << "called Maps destructor" << endl;
if(d->Started)
Finish();
@ -106,7 +106,13 @@ int main (void)
if(cont)
if(cont->Attach())
cont->getMaps();
DFHack::Maps * mapz = cont->getMaps();
cont->Suspend();
mapz->Start();
cont->Resume();
bool result = cont->Detach();
if(!result)