Re: JNI C++ importatn process



Marcelo wrote:
because it is inside a GUI
should I use a SwingUtilities ?


javax.swing.SwingUtilities.invokeLater(new Runnable() { public void run() { greatC++(); } });
NOOOO! With SwingUtilities.invokeLater you tell Java to call greatC++() from the GUI(!) thread. Hence the GUI will be blocked as long as it runs greatC++().
Instead you want greatC++() to be called by ANOTHER thread. Create a new Thread and then start it by yourself.
I recommend reading a good text-book (or the Java tutorial) about the Thread and Runnable stuff.
--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')


.