Microsoft KB Archive/190846

= BUG: Calling AsyncRead on a File Twice Causes Error 698 =

Article ID: 190846

Article Last Modified on 11/21/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition

-



This article was previously published under Q190846



SYMPTOMS
When the all of the following conditions are true:


 * You are calling AsyncRead on local files.
 * You are using the same value for the PropertyName argument.
 * You make the two calls successively.

the following error message is displayed:

  Error 698: PropertyName parameter conflicts with the PropertyName of              an AsyncRead in progress

Because the AsyncRead is being performed on a local file, the download should be happening synchronously. This means that it should be okay to issue AsyncRead twice in succession.



RESOLUTION
If you wish to force Synchronous download, use the AsyncReadOption: "vbAsyncReadSynchronousDownload" in your call to AsyncRead.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.



Steps to Reproduce Behavior
 Create a ActiveX Document DLL project in Visual Basic.  Put the following code into your Userdocument_Click handler: AsyncRead "c:\windows\Triangles.bmp", vbAsyncTypePicture, "def" AsyncRead "c:\windows\Triangles.bmp", vbAsyncTypePicture, "def"  Compile the project into a DLL. Start Internet Explorer 4.x and navigate to your .VBD file. Click on the Document and note that you see the above-mentioned error message.</li></ol>

Additional query words: kbDSupport kbVBp600bug kbdsi kbVBp kbInternet kbNoKeyWord

Keywords: kbbug KB190846

-

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

© Microsoft Corporation. All rights reserved.