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