开发者

OF_SHARE_DENY_NONE doesn't share read?

开发者 https://www.devze.com 2023-02-17 16:17 出处:网络
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.

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

精彩评论

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