This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Excel dlls and file locking


On Thu, 24 Jun 1999, Fifer, Eric wrote:

> 
> 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()

Thanks for the analysis. 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.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]