I am using JNA in order to call C functions from Java. Sometimes the C functions are crashing and they are also making the java application to crash - an unwanted effect.
If I run my program from the IDE I got the following message with exit code:
Process finished with exit code -1073740940 (0xC0000374)
If i run the compiled java application I get a general error message:
Do you know how could I prevent these type of errors from crashing the java program?
All calls are already wrapped in try- catch throwable objects.
I should mention that I have no control over the C program or the jna wrapper, I am just calling the methods. (As a matter of fact I am using the wrapper tes4j for tesseract, and it crashes for certain images, but this did not seem relevant for finding a solution).