开发者

OF_SHARE_DENY_NONE doesn't share read?

I am creating a video in my app开发者_C百科 with AVIFileOpen(&pfile, fn, OF_WRITE | OF_CREATE | OF_SHARE_DENY_NONE, NULL); and I can't acces the avi file while it is creating.

What's the problem ?

Thanks


I debugged into the function and it is calling CreateFile() with dwShareMode = 0 (exclusive); somewhere along the way it is losing the share mode. Didn't work with OF_SHARE_DENY_WRITE, either. I guess it's just a bug. This was on Windows XP SP3.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜