PRB: Problems with Windows Sound System (QRECORD.EXE) & FoxPro

ID: Q103691

The information in this article applies to:

SYMPTOMS

Executing an @ ... SAY VERB "Play" command on a general field that contains a sound object causes FoxPro to lose the focus and appear to hang (lock up) on a system that has the Microsoft Windows Sound System installed. Specifically, FoxPro loses the focus, the hourglass appears, the sound plays, and then the system appears to hang.

CAUSE

When the Windows Sound System is installed, it replaces the default Windows Sound Recorder application and OLE server (SOUNDREC.EXE) with its own specialized version (QRECORD.EXE) and updates the registration database accordingly.

Because FoxPro's default mode for OLE transactions is synchronous, the OLE server must notify FoxPro that its task (playing the sound) is complete before FoxPro will continue processing. Normally, this notification is made by the action of the server closing the OLE object. Sound Recorder properly closes the object, but Quick Recorder does not. As a result, FoxPro appears to lock up because it is waiting for the server to release the object. If the Quick Recorder task is terminated (by pressing ALT+TAB and choosing Close from the Control menu or by choosing End Task in the Task List), FoxPro will continue processing normally.

RESOLUTION

There are two ways to work around this problem:

Additional reference words: FoxWin wss 2.50 2.50a Windows Sound System QRECORD quick Recorder OLE SAY KBCategory: kbsound kbole kbprg kbprb KBSubcategory: FxinteropOle

Last Reviewed: June 26, 1995