->AddRef();        CHECK_REFCOUNT(localdev, 0);       CHECK_REFCOUNT(localtex, 0);       CHECK_REFCOUNT(localsrv, 0);        localsrv->AddRef();       localsrv->AddRef();       localsrv->AddRef();       