PRB: Attachment Size Is Corrupted by Multiple Writes to Attachment Stream (820721)
The information in this article applies to:
- Microsoft SmartPhone 2002 SDK
- Microsoft Windows CE Platform SDK for Pocket PC 2002
SYMPTOMSMultiple writes to an attachment stream corrupt the attachment size.CAUSE The calculation for attachment size does not work if Seek is used with STREAM_SEEK_END instead of STREAM_SEEK_SET.RESOLUTIONTo resolve the problem, follow these steps: - Read the size of the attachment stream by using the Stat method of IStream.
- Use the size that is returned in LARGE_INTEGER to seek to the end of the stream by using STREAM_SEEK_SET on the attachment stream.
- Write to the stream.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 9/24/2003 |
---|
Keywords: | kbprb KB820721 kbAudDeveloper |
---|
|