X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 4 Mar 2011 10:52:24 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: winmm.dll error 487 is easily reproducible Message-ID: <20110304095224.GB3480@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20110302130651 DOT 17593ulkc6umco2j AT messagerie DOT si DOT c-s DOT fr> <20110302140857 DOT 8746705bfur7cwa1 AT messagerie DOT si DOT c-s DOT fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Mar 4 05:09, Andy Koppe wrote: > On 2 March 2011 13:08, EXCOFFIER Denis wrote: > > P.S.: By the way, what is the normal way to install snapshots? It is > > easy to replace cygwin1.dll (keeping around the working one), but in order > > to test the cygwin1 package in full (eg to check within stdio.h whether > > vsnprintf is included under __STRICT_ANSI__ or not)? > > You should usually install the cygwin-inst-*.tar.bz2 tarball > containing all the relevant headers and tools along with the DLL. > > There's a FAQ entry describing how to install it at > http://cygwin.com/faq-nochunks.html#faq.setup.snapshots. > > The snapshots page could do with a link to that. However, due to > Cygwin 1.7's ability to overwrite in-use files, including the Cygwin > DLL itself, it's no longer necessary to exclude the DLL when > unpacking, i.e. I find the following works for me: > > - Shut down all Cygwin processes, including background services. > - Open a Cygwin shell (with administrator rights if Cygwin was > installed as administrator). > - cd / > - tar xvf /path/to/cygwin-inst-*.tar.bz2 Just for the records: At this point you just have to keep in mind that the old DLL has now been moved to the trash bin. Every new process started from here, by fork or by exec, would load the new DLL. That would very likely collide with the memory layout of the old DLL so you're risking a crash. You're lucky that the processes up to here don't fork during un-taring... > - Close shell. ...so that's the only sane thing to do here. > - Start new shell. Use 'uname -a' to check that you're using the shiny > new snapshot. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple