BUG: OLE Error Playing .WAV Object

Last reviewed: April 25, 1997
Article ID: Q142552
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

After clicking the icon to play a .wav file that is on a Visual FoxPro form, you sees a modal message box containing the text "OLE error code 0x80010105. The server threw an exception."

WORKAROUND

Ignore the message box. Click the OK button to remove the message from the form. Or play the .wav file programmatically. For more information on how to do this, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q102585
   TITLE     : How to Play Waveform (.WAV) Files in FoxPro for Windows

STATUS

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

MORE INFORMATION

When you add an OLE container control to a form, add a .wav file to the OLE container, run the form, and click the .wav file icon, the sound plays, but a message box immediately appears stating that there has been an OLE error -- the server threw an exception.

This happens regardless of whether Visual FoxPro is installed stand-alone or on a network, regardless of the operating system (Windows for Workgroups, Windows NT, or Windows 95), and regardless of which sound card and drivers you're using.

Steps to Reproduce Problem

On a system that has a sound card and the appropriate driver software:

  1. Create a form by typing the following in the Command window:

    Create form testx

  2. Add an OLE container control to the empty form (testx.scx).

  3. Click "Create from file" from the Insert Object dialog box, and then click the Browse button. In the Browse dialog box, change the Directories to C:\Windows. In the files list, select Chord.wav or any other .wav file. Click OK to close the dialog boxes. A loudspeaker icon will appear on your form.

  4. Click the exclamation point (!) tool on the Visual FoxPro toolbar to run the form.

  5. Double-click the loudspeaker icon to play the .wav file. The sound will play, and immediately the message box will appear.


KBCategory: kbinterop kbbuglist
KBSubcategory: FxinteropOle vfoxwinbuglist3.00 buglist3.00b buglist5.00
Additional reference words: 5.00 3.00 3.00b media wave
Keywords : buglist3.00 buglist3.00b buglist5.00 FxinteropOle vfoxwin vfpbug5.0a kbinterop kbbuglist
Version : 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.