delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/12/03/10:29:13

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <199912031528.JAA07880@hp2.xraylith.wisc.edu>
To: Alan Griffiths <alan DOT griffiths AT experian DOT com>
cc: cygwin AT sourceware DOT cygnus DOT com, khan AT hp2 DOT xraylith DOT wisc DOT edu
Subject: Re: Using Cygwin 1 with Mumit's JNI examples
In-reply-to: Your message of "Fri, 03 Dec 1999 10:50:55 GMT."
<s847a313 DOT 058 AT experian DOT com>
Date: Fri, 03 Dec 1999 09:28:02 -0600
From: Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU>

Alan Griffiths <alan DOT griffiths AT experian DOT com> writes:
> I'm using the Cywin 1.0 CD and have downloaded Mumit's JNI examples,
> but I can't get them to work!

Loading Cygwin DLL from noncygwin apps (such as Java JNI) is broken
in Cygwin v1.0 CD version.

Your best bet is to pick a recent development snapshot and see if
that works. We can take it from there.

The root cause of the breakage is in winsup/entry.cc, where there
is a block in dll_entry() that looks like this:
  
  case DLL_PROCESS_ATTACH:
    if (! static_load)
      {
	/* ... */
      }
    break;

The code between the `if' block screws up dynamic loading of Cygwin DLL
from noncygwin apps.

Regards,
Mumit


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