- summary: Java crash when no webcam is avaiable --> Java crash when no webcam is available
If I want to use the jmyron.jar, when there isn't webcam connected, happens a crash of java VM
I see the crash happens executing the method native_update().
It is possible to insert a method which advise that there isn't webcam connected or there is an error during the native_start().
This to protect the code against the crash.
This is the log when it is execute the method native_update()
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0bef1830, pid=5468, tid=4120
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_22-b03 mixed mode)
# Problematic frame:
# C [myron_ezcam.dll+0x1830]
#
# An error report file with more information is saved as hs_err_pid5468.log
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
Myron: myron_ezcam_run() failed
myron_ezcam_run() failed at cam->initCamera()