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 Date: Tue, 26 Oct 2004 13:12:12 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: ademoulian cc: cygwin AT cygwin DOT com Subject: Re: Loading gcc-compiled DLL with Java (JNI) crashes when using newer (>1.5.5) cygwin1.dll In-Reply-To: <000701c4bb73$e0865670$2c02a8c0@yaccom.lan> Message-ID: References: <000701c4bb73$e0865670$2c02a8c0 AT yaccom DOT lan> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.39 Alain, Please send Cygwin-related questions to the Cygwin mailing list at . Not only will you get access to more expertise than any one person can provide, but your questions and the replies to them will get archived on the web for others to find. I've forwarded this reply to the list and set the Reply-To: field accordingly. On Tue, 26 Oct 2004, ademoulian wrote: > Have you got any explanation of this problem, > For I have the same problem, my program stop on the > System.load("c:/path/libnative.dll") > There is no error, but the program seems to be in an infinite loop in > this routine. > > Thank you very much for helping me . Dynamic loading of Cygwin DLLs has been broken for some time. Since this doesn't affect the core Cygwin developers, there's little motivation for a fix. You could try debugging this yourself and (hopefully) submitting a patch, or use the "-mno-cygwin" option of gcc, which will build a MinGW version of your DLL (with all the associated limitations -- please see http://mingw.org/ for where to ask for help on MinGW). Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "Happiness lies in being privileged to work hard for long hours in doing whatever you think is worth doing." -- Dr. Jubal Harshaw -- 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/