[Fwd: Re: Calling Same Native method more than once.]

1999-08-04 Thread Jacob Nikom
Original Message Subject: Re: Calling Same Native method more than once. Date: Wed, 04 Aug 1999 10:46:06 -0400 From: Jacob Nikom <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Organization: MERL To: [EMAIL PROTECTED] References: <[EMAIL PROTECTED]> <[EMAIL PROT

Calling Same native method more than once.

1999-08-04 Thread Nagaraj S.B
Hi all, I am facing problem in calling a native method more than once in java. The native method('C') basically implements socket part to collect some data from other machine. JDK 1.2pre-v2 (glibc2.1), Linux : RedHat6.0. It gives the correct value once, but for the second time it is called, it co

Re: Calling Same Native method more than once.

1999-08-03 Thread Nagaraj S.B
Jacob Nikom wrote: > > I don't think there is any limitations on the number of calls of C routine. > I call my C routine from Java thousand times without any problem. Look > for something else - memory problem of threads. Do you call your routine > from the main tread or you created separate one?

Re: Calling Same Native method more than once.

1999-08-03 Thread Jacob Nikom
I don't think there is any limitations on the number of calls of C routine. I call my C routine from Java thousand times without any problem. Look for something else - memory problem of threads. Do you call your routine from the main tread or you created separate one? Jacob "Nagaraj S.B" wrote:

Re: Calling Same Native method more than once.

1999-08-03 Thread Robert Perry
I have call the same native method from several threads under several different JDK's and have not had any such problems. I am not sure that Blackdown's 1.2 with native threads is in the list of JDK's I have used. Not, that I think the JDK is the problem I just do not want to imply that I ha

Calling Same Native method more than once.

1999-08-03 Thread Nagaraj S.B
Hi all, Thanks for helping me in interfacing C with Java.I am facing a problem in executing my program(java) which calls a 'C' function. I am calling 'C' native method for every 10 secs in my 'java' program , but after first loop, my program(java) exits by giving SIGSEV 11* Segmentation violation