Excel dlls and file locking

Fifer, Eric EFifer@sanwaint.com
Wed Jun 30 22:10:00 GMT 1999


>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@sourceware.cygnus.com



More information about the Cygwin mailing list