don't log output if debugging with VS
add cmp with string length to idStr
CacheDictionaryMedia