Use JNI Through JAVA Thread



I made an example which works fine in the JAVA main
Thread, but crash in a new Thread, Why?

Is it possible to do something like that?
if no, how?

public class UserThread extends Threads{

private MyJNIObject myJNIObject;

public UserThread(){
try{
System.loadLibrary("myDLL.dll");
}catch(UnsatisfiedLinkError e){}
this.myJNIObject = new MyJNIObject();

}

public void run(){
this.myJNIObject.run();
}

}

.



Relevant Pages

  • Re: JNI EXCEPTION_ACCESS_VIOLATION
    ... I am not experienced in coding a dll and access it via ... Java, but, I would say to you that, if you do not mind, try to use the ... The code will crash when running under XP Service Pack 2 ... The code will NOT crash when running under Windows 2000 Service Pack 4 ...
    (comp.lang.java.programmer)
  • Re: How stable is 1.5?
    ... >> I'm still getting the odd random error in various java programs ... >> happening randomly in various java apps. ... I got one more crash that looks like the same problem as the ... The crash happens when a window peer is disposed. ...
    (comp.lang.java.programmer)
  • serial fopen crash
    ... The last statement causes matlab to crash. ... (However, it's not the "usual" crash, it's not dumped to the command window nor referred to at ML restart; see report at the end.) ... # An unexpected error has been detected by Java Runtime Environment: ... # If you would like to submit a bug report, ...
    (comp.soft-sys.matlab)
  • runtime error abnormal termination
    ... i had an immediate crash there, but i never crash at this site ... tools - ive unticked ms java, installed sun java both to no avail and ... ive reverted back to the original java option (when i tried several ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: Problem with IE6 and java applets
    ... > computer causing an instant crash, before loading is even completed, and I've ... > The issue is that all the webpages that are causing IE to crash have java ... > applets on them. ... both of those browsers crash with a java applet ...
    (microsoft.public.windows.inetexplorer.ie6.browser)