This is the mail archive of the java@gcc.gnu.org mailing list for the Java 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: Crash in JNI test application


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



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