Hi
I use DJNativeSwing in my project but I find a problem.The DJNativeSwing browser can't do anything if I disconnect netwrok.I add the code "NativeInterface.runEventPump();",the problem is ok.I need run DJNativeSwing browser many times,but the code "NativeInterface.runEventPump();"can only add one time.when I called seconed time,browser can't display.I try to start new
thread and put the code "NativeInterface.runEventPump();" in to new thread.When I need use browser ,I new a thread.It's run ok in a few time,but then i got the error "Invalid memory access of location 0x0 rip=0x7fff9236ce90" and the whole Application exit.I need help,thank you very much!
My environment list below:
Mac os X:
10.7.5
java -version:
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11G63)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
DJ Native Swing:
DJNativeSwing-SWT-1-0-2-20120308
SWT:
swt-4.2.1-cocoa-macosx-x86_64
jna:
jna-3.2.4.jar and jna_WindowUtils.jar
Please help me, I need it works on Mac.
"NativeInterface.runEventPump()" must be called only once, at the end of the main method.
The "invalid memory access" sounds like a bug in the native runtime and there is little I can do if the native runtime is buggy.
The only thing we can hope for is to have improved statbility with the coming versions of: SWT 4.3M6 and Java 7u13 (which should allow DJ Native Swing to work on Mac with Java 7).
-Christopher