I am working on an MP3 player that downloads and plays in real time. For this i am writing the MP3 file while it is downloading into a file and am rendering the file simultaneously. I am using CreateFile fucntion with SHARE_READ_WRITE flag. But i am getting a Sharing Vioation error while rendering. As i have mentioned The Download, Write and Rendering is happening simultaneously. I do not come across this problem while downloading and playing a WMA file. Is there something that i am missing with respect to MP3's. Have anybody come across this kind of problem. Please give me a reply as soon as possible as i am horribly stuck.