|
-
July 30th, 1999, 03:31 AM
#1
Event handling and jni
Hi Evrybody,
I have some trouble about using an event handler wich will call a C function using the JNI interface.
the code is like this : a GUI interface with JTextField and JButton get (user name and passwd), then
call to Connection(name,passwd); where Connection is a function connecting to
an Open Server appliaction. When I run the application I get this runtime error :
<javacode>
SIGSEGV 11* segmentation violation
stackpointer=0xbe7ff8cc
Full thread dump Classic VM (Linux_JDK_1.2_pre-release-v2, native threads):
"Thread-1" (TID:0x404e7140, sys_thread_t:0x85cbd08, state:R, native ID:0x240a) prio=6
at Dialogue.Connection(Native Method)
at Dialogue$2.construct(Compiled Code)
at SwingWorker$2.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
"Thread-0" (TID:0x404cb6f8, sys_thread_t:0x804bf30, state:CW, native ID:0x400) prio=5
"Screen Updater" (TID:0x404cad28, sys_thread_t:0x8582e78, state:CW, native ID:0x2009) prio=4
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Compiled Code)
at sun.awt.ScreenUpdater.nextEntry(Compiled Code)
at sun.awt.ScreenUpdater.run(Compiled Code)
"TimerQueue" (TID:0x404d2198, sys_thread_t:0x82b3448, state:CW, native ID:0x1c08) prio=5
</javacode>
If somebody can help me to fix it ?
note : I tried to use the SwingWorker class but the result is the same.
thank in dvance,
Alioune.
Alioune THIAM Ingineering student at IIE
Interns at TETRAGONE S.A
FRANCE
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|