On Thu, 3 Feb 2005, Olivier Mesmeur wrote: > >>Hi, > >> > >>We have a problem using JNI and IPC under cygwin. > >> > >>We compile a DLL using gcc but without -mno-cygwin option because we > >>need IPC functionalities. > >> > >>It's worked fine with previous version of cygwin (< 1.5.5), but now > >>that we are using cygwin version 1.5.9, java crashs when we launch the > >>DLL with system.loadlibrary(). > >> > >>This is exactly the same problem (same project) in the mail (see link > >>below) but the proposed solution only work on version < 1.5.5 of > >>cygwin: > >> > >>http://sources.redhat.com/ml/cygwin/2003-01/msg01026.html > >> > >>Is it possible to load a DLL, compiled with gcc without -mno-cygwin, > >>with java in new version of cygwin? > > >No, loading cygwin1.dll in this way is not supported. We need someone > >interested in getting this working to provide a patch. > > Thanks, I am interesting to provide a patch but I don't know how to > start! I think that I need CVS source
You do. See <http://cygwin.com/cvs.html>. > but which components of cygwin I need to modify? Probably the DLL initialization code... > And do you have an idea about the time needed to develop the patch? The fact that it hasn't been implemented yet seems to indicate that it's non-trivial. I'd suggest getting this down to a small example that reproduces the problem (i.e., a main program with just the LoadLibrary call, and a DLL with a trivial function that depends on cygwin1.dll) before trying to fix it. Also note that any non-trivial patch requires a Cygwin copyright assignment, as described in <http://cygwin.com/contrib.html>. Good luck, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ [EMAIL PROTECTED] ZZZzz /,`.-'`' -. ;-;;,_ [EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/