> From: "dl0haus"
>
> > I have an archival application that downloads live
> > streams. We do a lot on weekends especially so its
> > multithreaded. This application works well 99.9% of the
> > time, however, sometimes it crashes. I have noticed
> > sometimes that the writer object is NULL for reasons I
> > cannot explain.
>
> If by "writer object" you mean your reference to IWMWriter,
> than the only explanation is that your own code sets it to
> NULL, because that memory location is only known to your
> stack or your heap.
>
> > I am wondering if it is possible for the WMFSDK to be in
> > a condition where it requests a write to the disk and
> > Windows just doesn't have any at that moment and I miss
> > the write in that case?
>
> Windows doesn't have such a huge I/O bug that I'm aware of.
> Whether the WMWriter ignores some error condition returned
> by the OS and misses a write is a different story, but I've
> not read any other report of this happening. On the other
> hand, if you have a bug that sets the wrong reference to a
> writer to NULL, maybe the same bug calls EndWriting() on the
> wrong writer, too.
>
> You should also consider that the WMF runtime is probably
> not designed for this kind of scenario and writing your own
> MMS client that downloads the stream directly instead of
> remuxing it would be far more efficient.
>
>
> --
> // Alessandro Angeli
> // MVP :: DirectShow / MediaFoundation
> // mvpnews at riseoftheants dot com
> //
http://www.riseoftheants.com/mmx/faq.htm >
>
>