void 
CTagEntityMng::unregisterTag( const std::string& tag){
  //
  if( !dropTag( tag)){
    dropUniqueTag( tag);
  }
  // 
  dropEntityTag( tag);
}
bool CInMemoryBuffer::dropTagSafe(PCTAG_NAME tn)
{
	bool ret;
	
	//utils_debug("wlock 5\n");
	WriteLock();
	if(!lock_rtdb(__false, 100)){
		Release();
		return __false;
	}
	ret = dropTag(tn);
	unlock_rtdb();

	//utils_debug("release 10\n");
	Release();
	
	return ret;
}