Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <71E287AB0D94D111BBD600600849EC8185EDDF@POST> From: "Fifer, Eric" To: "'Mumit Khan'" Cc: "'cygwin AT sourceware DOT cygnus DOT com'" Subject: RE: Excel dlls and file locking Date: Fri, 25 Jun 1999 10:15:38 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2232.9) Content-Type: text/plain; charset="ISO-8859-1" >I nor anyone else has worked on the noncygwin >hack since b20.1, so I doubt if it's fixed. If you want to take a crack >at the fix, I'll be happy to take a look and test. I might take you up on that, but I don't have the time right now. I was just hoping for a quick fix. Regardless, thanks for confirming my suspicions. The reason I stumbled across it, is that the dll I've been coding up is an interface to perl (I call it VBPerl) which is tightly bundled with Win32::OLE. It lets me call perl directly from Excel and in the perl code you can freely access the Excel object hierarchy via the COM interface provided by Win32::OLE (just like VB). The perl debugger even works. The last thing I need to do is send off the patches to the Win32::OLE maintainer. Anyways, we have cygwin and perl installed on a network drive and when you do a stat in cygwin it actually opens the file using the host_dependent.shared setting. Unfortunately, if anyone else has the file open the stat then fails because of the exclusive lock request. Fortunately, perl doesn't keep stuff open that long, but when you have a XSUB dll loaded into a program anywhere on the network a cygwin stat will fail. For now, in DynaLoader.pm I removed the stat and just load the dll, which should work as long everything is installed correctly. Now, I should only see occassional failures if people are loading things up around the same time :-( Thanks. Eric Fifer -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com