Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <418E3D6B.2060102@familiehaase.de>
Date: Sun, 07 Nov 2004 16:21:15 +0100
From: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; de-AT; rv:1.7.3) Gecko/20040910
MIME-Version: 1.0
To: Solly Ezekiel <sol_ezekiel@yahoo.com>
CC: cygwin@cygwin.com
Subject: Re: JNI call crashes the JVM
References: <20041107151109.78247.qmail@web90008.mail.scd.yahoo.com>
In-Reply-To: <20041107151109.78247.qmail@web90008.mail.scd.yahoo.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Solly Ezekiel wrote:

> Lapo,
> 
> Thank you, this is just what I was looking for.  I
> will try what you suggest and let you know how it
> turned out.
> 
> Out of curiosity, when I do a cygcheck on my DLL, I
> see this:
> 
> $ cygcheck GcNativeLib.dll 
> Found: .\GcNativeLib.dll
> GcNativeLib.dll
>   C:\WINDOWS\system32\msvcrt.dll
>     C:\WINDOWS\system32\KERNEL32.dll
>       C:\WINDOWS\system32\ntdll.dll
>   C:\cygwin\bin\cygwin1.dll
>     C:\WINDOWS\system32\ADVAPI32.DLL
>       C:\WINDOWS\system32\RPCRT4.dll
> 
> Does this mean the other DLLs are never getting
> loaded?

It is a difference if you link against a library or try to open a 
library during runtime with LoadLibrary.  In this case your DLL is 
linked against cygwin1.dll *and* msvcrt.dll which will crash your 
application for sure, you cannot link to two different c-runtimes.

Gerrit
-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

