Microsoft KB Archive/275920

= Windows Media SDK IWMWriter::WriteSample Fails with 0xC00D0018 (NS_E_FILE_WRITE) Error =

Article ID: 275920

Article Last Modified on 10/6/2005

-

APPLIES TO


 * Microsoft Windows Media Software Development Kit 7.0

-



This article was previously published under Q275920



SYMPTOMS
When you repeatedly open a file sink, write samples, and then close the file sink, the Microsoft Windows Media SDK IWMWriter::WriteSample method may fail with a 0xC00D0018 (NS_E_FILE_WRITE) error.



CAUSE
The file sink close method executes before all the samples queued in the writer are committed to disk. This causes an invalid handle error in the file sink, which is returned as NS_E_FILE_WRITE. The writer checks the last status of the file sink before queuing more samples in WriteSample and detects the NS_E_FILE_WRITE error state in the writer, which it then returns to the caller.



RESOLUTION
A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Windows 2000 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/default.aspx?scid=fh;EN-US;CNTACTMS

NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:

  Date       Time    Version     Size       File Name     Platform 09/27/2000 13:48  7.0.0.1956  1,134,864  Wmvcore.dll   x86



STATUS
Microsoft has confirmed that this is a problem in Microsoft Windows Media SDK, version 7.0.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB275920

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.