Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <418E3D6B.2060102@familiehaase.de> Date: Sun, 07 Nov 2004 16:21:15 +0100 From: "Gerrit P. Haase" 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 CC: cygwin AT cygwin DOT com Subject: Re: JNI call crashes the JVM References: <20041107151109 DOT 78247 DOT qmail AT web90008 DOT mail DOT scd DOT yahoo DOT 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/