MFS_SHARING_VIOLATION when opening in "a " mode after open in "r" mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MFS_SHARING_VIOLATION when opening in "a " mode after open in "r" mode

ソリューションへジャンプ
632件の閲覧回数
Fabi
Contributor III

When I open a file with "r" option, then closing it and opening it again with "a+" mode,

MQX runs in MFS_SHARING_VIOLATION in mfs_open.c:

            // If we are opening to write, the file can't already be opened.
            if ((access == MFS_ACCESS_WRITE_ONLY) || (access == MFS_ACCESS_READ_WRITE)) {
                error_code = MFS_SHARING_VIOLATION;
            }

What's wrong (with my calls)? Any ideas?

タグ(2)
0 件の賞賛
1 解決策
400件の閲覧回数
Fabi
Contributor III

It was an application issue. In some circumstances, where was no "closing" between the two "openings".

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
400件の閲覧回数
diego_augustus
Contributor II

Hi F.Bilz

Did you solve this problem?

Thanks.

0 件の賞賛
401件の閲覧回数
Fabi
Contributor III

It was an application issue. In some circumstances, where was no "closing" between the two "openings".

0 件の賞賛