This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Crash in JNI test application
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: João Garcia <jgarcia at uk2 dot net>
- Cc: java at gcc dot gnu dot org
- Date: Mon, 19 Jan 2004 21:17:41 +0100
- Subject: Re: Crash in JNI test application
- Organization: Zylin AS
- References: <1074525242.7992.69.camel@famine> <400C2E11.50703@uk2.net>
man, 19.01.2004 kl. 20.20 skrev João Garcia:
> Øyvind Harboe wrote:
>
> >My JNI superpowers are rather limited and I haven't tested it against
> >Sun's JRE, but the application is simple and is a subset of all the
> >JNI helloworld apps out there.
> >
> Do you really need something so complicated?
> Do you have to use the main() in C?
Actually, this is the reduced test case of problems I've discovered in
my unicodestmp.dll (source included in latest Mohans build).
> A CNI example follows (JNI would be almost the same, with changed
> function calls and header).
In my case I'm creating a DLL.
However, I'm at a crossroads:
If can't get a clean startup/shutdown of my unicodesmtp.dll, I need to
create and destroy a process for each email I send(OS resource tracking
will clean up resources).
Then things start to smell like a .exe again.
FYI, my API is:
// returns error code
int send(wchar_t *smtp, // internetaddress
wchar_t *login, // any chars, any length
wchar_t *password, // any chars, any length
wchar_t *from, // email address
wchar_t *to, // email address
wchar_t *subject, // any length, any chars
wchar_t *body // any length, any chars
)
Øyvind