Debug eclipse thread of native function in Visual Studio.

Having problems with building or using the JCEF Java binding? Ask your questions here.

Re: Debug eclipse thread of native function in Visual Studio

Postby Arekkusu » Wed Sep 06, 2017 3:03 am

Here's the error log.
Attachments
hs_err_pid2348.log
(20.65 KiB) Downloaded 607 times
Arekkusu
Techie
 
Posts: 20
Joined: Fri Aug 25, 2017 2:35 am

Re: Debug eclipse thread of native function in Visual Studio

Postby Phylanx » Wed Sep 06, 2017 3:37 am

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.
Phylanx
Expert
 
Posts: 201
Joined: Thu Aug 11, 2016 8:17 am

Previous

Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 19 guests

cron