delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/06/24/10:31:12

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: <71E287AB0D94D111BBD600600849EC8185EDDE@POST>
From: "Fifer, Eric" <EFifer AT sanwaint DOT com>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Excel dlls and file locking
Date: Thu, 24 Jun 1999 15:13:00 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2232.9)

I have created a dll that is called from Excel and it works fine,
however all files that it opens are locked.

I think what is happening is that the host_dependent.shared parameter
to CreateFileA is 0 (in fhandler.cc fhandler_base::open) because it is
not being initialized by the cygwin_noncygwin_dll_entry point.

The call stack is something like cygwin_noncygwin_dll_entry ->
cygwin_attach_noncygwin_dll -> dll_noncygwin_dllcrt0 ->
dll_dllcrt0_1 (in dll_init.c)

And in comparison to dll_crt0_1 in dcrt0.cc there is NO call
to host_dependent.init()

I've also been trying to turn strace on in the dll with no luck,
setting the environment with STRACE=0x10 or CYGWIN=strace=0x10 does
nothing inside the dll.

I also fiddled directly with cygwin_getshared(), but this didn't
work either. 

I'm using the original b20.1 cygwin1.dll.

Is there anyway to work around this without building a new cygwin1.dll?

Thanks in advance.

Eric Fifer

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019