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
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.
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
Steps to Reproduce the Problem
- 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"
- 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
| 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
|
Reported as Irrelevant
|
| Written:
7/4/2005 5:33 AM |
|
|