Microsoft Knowledge Base Email Alertz

If you play a .wav file that is stored in a general field by using an

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 316332 - Last Review: September 27, 2004 - Revision: 2.2

PRB: OLE Error Message "0x80010105: The Server Threw an Exception" When You Play a Sound

This article was previously published under Q316332

On This Page

SYMPTOMS

If you play a .wav file that is stored in a general field by using an @ say command, you may receive the following error message:
OLE error code 0x80010105: The server threw an exception.

RESOLUTION

To work around this problem, use a memo binary field instead of a general field. Copy the sound to a temporary file, and then use the set bell to command to play the sound. The following sample code demonstrates this method:
* If the file already exists, you are not prompted to overwrite it.
SET SAFETY OFF

* The NOCPTRANS clause makes this a binary memo field.
CREATE TABLE testsound (sound M NOCPTRANS)

APPEND BLANK 
APPEND MEMO sound FROM GETFILE("wav")

* Copy the sound from the table to a file.
COPY MEMO sound TO "temp.wav"
SET BELL TO "temp.wav", 1
?? CHR(7)
SET BELL TO
				

MORE INFORMATION

Steps to Reproduce the Problem

  1. Run the following code. When the dialog box appears, select a .wav file:
    SET SAFETY OFF
    
    CREATE TABLE testsound (sound G)
    
    APPEND BLANK
    APPEND GENERAL sound FROM GETFILE("wav")
    
    @1,1 SAY testsound.sound verb "play"
    					
  2. If you are running one of the listed operating systems, you receive the error message that is mentioned in the "Symptoms" section.

APPLIES TO
  • Microsoft Visual FoxPro 5.0 Standard Edition, when used with:
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 5.0a, when used with:
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 6.0 Professional Edition, when used with:
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows NT 4.0
  • Microsoft Visual FoxPro 7.0 Professional Edition, when used with:
    • the operating system: Microsoft Windows 2000
    • Microsoft Windows 98 Standard Edition
    • Microsoft Windows 98 Second Edition
    • Microsoft Windows Millennium Edition
    • Microsoft Windows NT 4.0
Keywords: 
kbcodesnippet kbprb KB316332
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

SAMPAT - samp_k2000 NOSPAM-AT-NOSPAM yahoo.com Report As Irrelevant  
Written: 7/4/2005 5:31 AM
when i making a softcopy in my excelbased software following error are coming

SAMPAT - samp_k2000 NOSPAM-AT-NOSPAM yahoo.com Reported as Irrelevant  
Written: 7/4/2005 5:33 AM
when i making a softcopy in my excelbased software following error are coming OLE error code 0x80010105: The server threw an exception