Hello, I am writing an application in java . I use JavaFX as a GUI (I’ll say right away that when using swt there is no such problem).
So, there is a certain function, the duration of which is at least 30 seconds on my laptop. It is quite complex data processing.
When you call it, literally after 1-2 seconds, a window appears that "The Java (TM) Platform SE binary platform does not work" with the text "The resulting problem led to the termination of the program ...".
How to solve this problem, I do not know.
Maybe someone will tell you how to call methods that have been running for quite a long time and, at the same time, the JavaFX application has not been cut down like this ..?
I call the method when selecting the popup menu item:
itemGoIT.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { context.hide(); //убираем меню System.out.println("старт " + new Date(System.currentTimeMillis())); JniTest SS = new JniTest(); try { //вызываем метод SS.showString(); } catch (UnsatisfiedLinkError e) { System.out.println("метод не найден (" + e + ")"); } System.out.println("завершено " + new Date(System.currentTimeMillis())); } });