Microsoft KB Archive/142552

= FIX: OLE Error Playing .WAV Object =

Article ID: 142552

Article Last Modified on 5/7/2003

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition
 * Microsoft Visual FoxPro 3.0b Standard Edition
 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a

-



This article was previously published under Q142552



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:

102585 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. This has been corrected in Visual FoxPro 6.0.



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:

  Create a form by typing the following in the Command window: Create form testx  Add an OLE container control to the empty form (testx.scx). 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. Click the exclamation point (!) tool on the Visual FoxPro toolbar to run the form. Double-click the loudspeaker icon to play the .wav file. The sound will play, and immediately the message box will appear.</ol>

Additional query words: media wave kbvfp600fix

Keywords: kbbug kbfix kbvfp600fix kbinterop KB142552

-

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

© Microsoft Corporation. All rights reserved.