2017-11-02 2 views
-2
[ 10,13136] 2017-10-23T11:53:31 - -------------------- IOException caught -------------------- 
[ 10,13136] 2017-10-23T11:53:31 - The process cannot access the file 'C:\Users\cdahal\AppData\Roaming\Skype\chetan.d\config.xml' because it is being used by another process. 
[ 10,13136] 2017-10-23T11:53:31 - Stack trace is : 
[ 10,13136] 2017-10-23T11:53:31 - at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 
    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) 
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize) 
    at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials) 
    at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn) 

Skype의 내게 필요한 옵션이 업데이트 될 때마다 config.xml 파일이 변경됩니다. 우리는 현재/config/UI/General/Accessibility 노드에서 값을 읽습니다. 그러나 응용 프로그램과 skype가 모두 실행 중이고 접근성 옵션을 변경하면 다음과 같은 오류 메시지가 나타납니다. -Skype에서 config.xml을 읽는 동안 다른 프로세스에서 파일을 사용 중입니다.

+1

그래서 skypes config를 업데이트하려고하는데, 실행 중에 설정 파일을 잠그는 것에 놀랐습니까? – BugFinder

+0

무엇이 당신의 질문입니까? 간단히 말해, Skype가 파일을 열어 잠근 경우 수정할 수 없습니다. –

+0

음, 업데이트 된 값을 읽으려고합니다. 가능한 해결책은 config.xml 파일을 임시 위치에 복사하고 액세스를 시도하는 것입니다. 다른 해결책이 있을지 궁금합니다. –

답변

관련 문제