Re: loading DLLs created with Cygwin into Sun JDK

2003-08-04 Thread Randall R Schulz
Ville, At 10:33 2003-08-03, Ville Herva wrote: On Sun, Aug 03, 2003 at 12:24:33AM -0400, you [Norman Vine] wrote: Marcus G. Daniels writes: Incidentally, does anyone know of a Windows application that can be used to see the VM maps in a given process. (Like in Linux, with

RE: loading DLLs created with Cygwin into Sun JDK

2003-08-03 Thread Igor Pechtchanski
On Sun, 3 Aug 2003, Norman Vine wrote: Marcus G. Daniels writes: Incidentally, does anyone know of a Windows application that can be used to see the VM maps in a given process. (Like in Linux, with /proc/PID/maps?) May mot be 'exactly' what you had in mind but I find

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-03 Thread Ville Herva
On Sun, Aug 03, 2003 at 12:24:33AM -0400, you [Norman Vine] wrote: Marcus G. Daniels writes: Incidentally, does anyone know of a Windows application that can be used to see the VM maps in a given process. (Like in Linux, with /proc/PID/maps?) May mot be 'exactly' what you had in mind

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-02 Thread Marcus G. Daniels
Interesting -- if I add the -Xmx256m flag to `java', my test case works too. The cause is the fixed `cygwin_shared_address' (set to 0xa00 in winsup/cygwin/shared_info.h). What happens with Sun JVM loads of Cygwin-dependent DLLs is that chunk of virtual memory gets claimed by the JVM,

RE: loading DLLs created with Cygwin into Sun JDK

2003-08-02 Thread Norman Vine
Marcus G. Daniels writes: Incidentally, does anyone know of a Windows application that can be used to see the VM maps in a given process. (Like in Linux, with /proc/PID/maps?) May mot be 'exactly' what you had in mind but I find http://www.dependencywalker.com/ *very* helpful for these

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Alan Thompson
Check out this solution from the mailing list archives: http://sources.redhat.com/ml/cygwin/2003-06/msg00357.html Alan Thompson At 10:09 PM 7/31/2003 -0600, Marcus G. Daniels wrote: I'm having a problem getting DLLs compiled with Cygwin to load into Sun JDK 1.4.1. In the past this has worked,

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Marcus G. Daniels
Alan Thompson wrote: Check out this solution from the mailing list archives: http://sources.redhat.com/ml/cygwin/2003-06/msg00357.html Thanks, but I'm not using the JNI Invocation API. Also, the suggestions in that web page refer to using -mno-cygwin. In the past it was actually possible

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Alan Thompson
OK - now you have me confusedIf you're not loading DLL's into Java for use with JNI, what are you doing? Also, note that those techniques work for both plain JNI (i.e. java calls into C/C++) as well as the invocation API (where a C/C++ program creates an JVM). At 03:52 PM 8/1/2003 -0600,

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Marcus G. Daniels
Alan Thompson write: OK - now you have me confused If you're not loading DLL's into Java for use with JNI, what are you doing? Also, note that those techniques work for both plain JNI (i.e. java calls into C/C++) as well as the invocation API (where a C/C++ program creates an JVM). Again,

Re: loading DLLs created with cygwin into Sun JDK

2003-08-01 Thread Christopher Faylor
On Fri, Aug 01, 2003 at 08:59:55PM -0600, Marcus G. Daniels wrote: Alan Thompson write: OK - now you have me confused If you're not loading DLL's into Java for use with JNI, what are you doing? Also, note that those techniques work for both plain JNI (i.e. java calls into C/C++) as well as

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Alan Thompson
Ok, if you check out this example: http://www.whitecaps.net/jni/expr.jar you'll see that there it doesn't use -mno-cygwin. Here is the g++ task from the ant build script: property name=cppCompilerName value=g++ / echo message=Compiling for Cygwin... / exec

Re: loading DLLs created with Cygwin into Sun JDK

2003-08-01 Thread Marcus G. Daniels
Alan Thompson wrote: Ok, if you check out this example: http://www.whitecaps.net/jni/expr.jar you'll see that there it doesn't use -mno-cygwin. Here is the g++ task from the ant build script: Interesting -- if I add the -Xmx256m flag to `java', my test case works too. -Xms64 doesn't seem

loading DLLs created with Cygwin into Sun JDK

2003-07-31 Thread Marcus G. Daniels
I'm having a problem getting DLLs compiled with Cygwin to load into Sun JDK 1.4.1. In the past this has worked, so I hope this is fixable without too much work. Here's an example. Take a simple Java Native Interface method like this: $ cat jniTest.c void Java_Test_test () { printf (test\n);}