🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8688

Problem with waveInReset or waveInClose

#8688
From: Mark Jacobs
Date: Mon, 27 Sep 2004 12:48
18 lines
1583 bytes
After doing some MM IO with waveIn, when I try to close my app under XP this
intermittently hangs the app before it has fully closed (you can stills ee it
under Task Manager) :-

waveInReset(phwo); waveInClose(phwo);

It works fine under Win9x, so I have had to put :-

  if (!quiet && _osmajor<5) { waveInReset(phwo); waveInClose(phwo);}

in order for it to work without hanging. That means I leave XP to close the
device when the app is closed. Under Win9x, the app closes the device fine, and
will hang if I don't close it (ie. leave the OS to close it).

What is wrong?

-- 
Mark Jacobs
Technical Details
Message-ID: <41580c18$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b12b71e4dd5ccef3,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg.htm?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Problem with waveInReset or waveInClose
Date: Mon, 27 Sep 2004 13:48:17 +0100
Lines: 19
Organization: DK Computing
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.86.186.94
Message-ID: <41580c18$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1096289304 81.86.186.94 (27 Sep 2004 05:48:24 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail