This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Loading gcc-compiled DLL with Java (JNI) crashes when using newer (>1.5.5) cygwin1.dll


Alain,

Please send Cygwin-related questions to the Cygwin mailing list at <cygwin
at cygwin dot com>.  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@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]