jmyron no camera exception
in
Contributed Library Questions
•
1 year ago
I am using JMyron to capture images from my webcam. I have a JFrame which displays the camera image and it works fine if I start the program after plugging my camera.
If I unplug my cam and start the program I get a warning message that says "There is no video capture device" and program crashes on this line:
- jMyronObject.update();
I am getting the following error message:
- #
- # A fatal error has been detected by the Java Runtime Environment:
- #
- # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000, pid=4840, tid=896
- #
- # JRE version: 7.0_05-b05
- # Java VM: Java HotSpot(TM) Client VM (23.1-b03 mixed mode, sharing windows-x86 )
- # Problematic frame:
- # C 0x00000000
- #
- # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
- #
- # An error report file with more information is saved as:
- # C:\Users\tk\Desktop\Projects\DK\hs_err_pid4840.log
- #
- # If you would like to submit a bug report, please visit:
- # http://bugreport.sun.com/bugreport/crash.jsp
- # The crash happened outside the Java Virtual Machine in native code.
- # See problematic frame for where to report the bug.
- #
- Myron: myron_ezcam_run() failed
- myron_ezcam_run() failed at cam->initCamera()
- Java Result: 1
try-catch block does not catch the exception. How can I check if there is a camera so I can handle no camera case?
1