From: noer AT cygnus DOT com (Geoffrey Noer) Subject: Re: DLL init patch for loading cygwin DLL from MSVC app 28 Oct 1998 18:15:17 -0800 Message-ID: <19981028175646.28408.cygnus.cygwin32.developers@cygnus.com> References: <9810290044 DOT AA29361 AT modi DOT xraylith DOT wisc DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Mumit Khan Cc: cygwin32-developers AT cygnus DOT com, Geoffrey Noer On Wed, Oct 28, 1998 at 06:44:25PM -0600, Mumit Khan wrote: > > Here's a tentative, and most certainly not completely correct, patch for > initializing Cygwin guts when a Cygnus DLL is loaded for the first time > from a *non-cygwin* application. > > I can now load cygwin DLLs from MSVC/Mingw apps as well as build working > Java JNI. But of course that doesn't mean that this patch is correct. > > I would very much appreciate it if folks could take a look and see if this > missing anything (or if it's just completely wrong!). Scanning it quickly, it looks pretty good to me, but I want to take a much closer look. In terms of including anything more in b20, it's getting awfully late but this particular patch does look safe in that the downside is small since the new code only gets invoked in a situation which never should occur for Cygwin apps using a Cygwin DLL. So I will try to include it in B20 unless problems with it are brought to my attention soon. Also, please note that I'm expecting to be making regular updates to B20 following the initial release so we can always fix this behavior (and other remaining Cygwin bugs) later if need be... Finally, I did get your assignment via fax. I'm assuming you've already sent off the actual signed hard copy? Thanks, -- Geoffrey Noer noer AT cygnus DOT com