AGKINSTALLATION * I=AGKINSTALLATION::Get();
if (I->GetDevices().size()>0)
{
std::map<int,AGKDEVICE*>Map=I->GetDevices();
std::map<int,AGKDEVICE*>::iterator it;
for(it = I->GetDevices().begin(); it != I->GetDevices().end(); ++it)
{
AGKDEVICE* D=it->second;
if (D->IsDisabled()) continue; <<< EXCEPCION!!! D es NULO!
if (t>(time_t)(D->GetTime()+Elapse)) //timeout!
{
...
}
}
}