Problems with an external library which use pthread

1999-10-28 Thread Stephane Letz

Hi,

I'm trying to port a C library  which use pthread with the Blackdown JDK
1.1.7 on Linux.

The  C library is linked with the JVM using JNI. This works correctly.

One of the function of the C library create a new thread using the
pthread_create (of the pthread library).

The external library is compiled as a shared library and linked with the
pthread library. it works correctly when used from an C or C++ program.

But when used with Java (with green threads),  the  function  crash with a
"segmentation violation" error and the crash seems to occur when the
pthread_create function is executed.

Using Java with native threads does not help and the program hangs before
calling this function.

Is there something special related to the use of pthread functions in a C
library called from Java?

Thanks

Stephane Letz


Grame: Centre National de creation musicale
9, Rue du Garet
69001 Lyon
Tel: 04-72-07-37-00
Fax: 04-72-07-37-01
Web: www.grame.fr



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Problems with Appletviewer and security

2000-05-12 Thread Stephane Letz

Hi,

I am trying to launch an applet (installed on my hard disk, not from the
network) that access native libraries . Native libraries are correctly
installed and can be used with an application.  But i get a Security
exception (when using loadLibrary)

Can the Security manager be configurated to allows applets to access Native
libraries?

I'm using JDK 1.2.2 RC4

Thanks

Stephane Letz


Grame: Centre National de creation musicale
9, Rue du Garet
69001 Lyon
Tel: 04-72-07-37-00
Fax: 04-72-07-37-01
Web: www.grame.fr



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]