DOCUMENT:Q316332 14-MAY-2002 [foxpro] TITLE :PRB: OLE Err Msg: 0x80010105: The Server Threw an Exception PRODUCT :Microsoft FoxPro PROD/VER::4.0,5.0,5.0a,6.0,7.0 OPER/SYS: KEYWORDS:kbvfp500 kbvfp500a kbvfp600 kbGrpDSFox kbDSupport kbCodeSnippet kbvfp700 _IK283 ====================================================================== ------------------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual FoxPro for Windows, versions 5.0, 5.0a, 6.0, 7.0, used with: - the operating system: Microsoft Windows 2000 - the operating system: Microsoft Windows 98 - the operating system: Microsoft Windows 98 Second Edition - the operating system: Microsoft Windows Millennium Edition - the operating system: Microsoft Windows NT 4.0 ------------------------------------------------------------------------------- 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. Additional query words: ====================================================================== Keywords : kbvfp500 kbvfp500a kbvfp600 kbGrpDSFox kbDSupport kbCodeSnippet kbvfp700 _IK283 Technology : kbVFPsearch kbAudDeveloper Version : :4.0,5.0,5.0a,6.0,7.0 Issue type : kbprb ============================================================================= 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. Copyright Microsoft Corporation 2002.