It`s ok, that should be: if (ACE_Service_Config ::instance()->find("2", &svc_rec) == -1) { ACE_DEBUG((LM_INFO, ACE_TEXT("\Abort.\n"))); asc->close(); return 0; }