delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/24/07:47:51

From: jdoyle AT sarnoff DOT com (JAMES DOYLE)
Subject: JNI functions under g++
24 Oct 1998 07:47:51 -0700 :
Message-ID: <3631355A.DCE4952.cygnus.gnu-win32@sarnoff.com>
Mime-Version: 1.0
To: Gnu Win32 Mailing List <gnu-win32 AT cygnus DOT com>

Hi,
	I've been using Gnu tools for years, but only 
recently needed to use them under Win32.  The reason I wanted
to try using the Win32 port is that I'm having mystifying problems
under Microsoft Visual C++.  I've been able to use VC++ in the past
to do JNI functions where I use malloc/free, but recently I've
needed to access C++ libraries that use new/delete, and under VC++
this is causing me problems.  Since things run fine on Solaris
with g++, I figured I'd try g++ on Windows.

	But, as Kiyoko Aoki and Andrew Mickish have noted
(re: B19 dll with JNI causing Dr. Watson, October 19), doing
C++ memory allocations doesn't work under GnuWin32 either.  
My DLL fails the first time it tries to call new().  I just thought
I'd let Kiyoko and Andrew (and other JNI people out there) know
there's another data point indicating trouble with JNI and
memory allocation.  Also, I thought you'd be interested to know
that MSVC++ has trouble with JNI and memory allocation, too.
I've posted to comp.lang.java.programmer asking if JNI
programmers in general have been able to work with C++ allocation
on Windows.  

Jim Doyle
jdoyle AT sarnoff DOT com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019