Commit 25042025

This commit is contained in:
2025-05-05 15:46:15 +07:00
parent 257eb50640
commit 2cf206b306
7 changed files with 143 additions and 29 deletions

View File

@@ -24,6 +24,14 @@ public class MainApplication extends Application {
@Override
public void start(Stage stage) throws IOException {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
System.out.println("ShutdownHook Checking running threads...");
Map<Thread, StackTraceElement[]> allThreads = Thread.getAllStackTraces();
for(Thread thread : allThreads.keySet()){
System.out.println("Thread: " + thread.getName()+", State: " + thread.getState()+", Daemon: " + thread.isDaemon());
//thread.interrupt();
}
}));
SecureDongle sd = new SecureDongle((short)0x4B30, (short)0xA66C, (short)0x3109, (short)0x37B1);
@@ -38,7 +46,7 @@ public class MainApplication extends Application {
Screen screen = Screen.getPrimary();
Rectangle2D screenbound = screen.getBounds();
Scene scene = new Scene(fxmlLoader.load(), screenbound.getWidth(), screenbound.getHeight());
stage.setTitle("MultiCam Capture App for ERHA 14042025-041");
stage.setTitle("MultiCam Capture App for ERHA 25042025-013");
stage.setScene(scene);
stage.setResizable(true);
stage.setMaximized(true);
@@ -98,12 +106,7 @@ public class MainApplication extends Application {
public void stop() throws Exception {
Logger.info("Application stopped");
super.stop();
System.out.println("Checking running threads...");
Map<Thread, StackTraceElement[]> allThreads = Thread.getAllStackTraces();
for(Thread thread : allThreads.keySet()){
System.out.println("Thread: " + thread.getName()+", State: " + thread.getState()+", Daemon: " + thread.isDaemon());
//thread.interrupt();
}
}
public static void main(String[] args) {