Page 3 of 3

Re: Debug eclipse thread of native function in Visual Studio

PostPosted: Wed Sep 06, 2017 3:03 am
by Arekkusu
Here's the error log.

Re: Debug eclipse thread of native function in Visual Studio

PostPosted: Wed Sep 06, 2017 3:37 am
by Phylanx
OK, that's more information :-)

As seen in the hs_err dump, the initialization runs in "Thread-0" (see Line with Java Threads: ( => current thread )).
This should happen in AWT EventQueue.
Please place that initialization Runnable into the EventQueue, not in a new Thread.

e.g. do following:
instead of
Code: Select all
    new Thread(runnable).start();

do
Code: Select all
    SwingUtilities.invokeAndWait(runnable);


I hope that should do the trick.