Closed eschava closed 10 years ago
Hi Eschava,
yes, this is because the input is then torn down by the API.
Can you please raise a github option for this? I think I'll add a flag like teardownFeatureOnShutdown which will be false by default.
Kind regards, Datenheld
On 28.08.2014 18:59, eschava wrote:
I started two apps listening for interrupts of the same GPIO port When one of them is closed - other prints exception
Exception in thread "Thread-14" java.lang.NullPointerException at org.bulldog.linux.gpio.LinuxDigitalInput.getEdge(LinuxDigitalInput.java:115) at org.bulldog.linux.gpio.LinuxDigitalInput.processEpollResults(LinuxDigitalInput.java:99) at org.bulldog.linux.io.LinuxEpollThread.fireEpollEvent(LinuxEpollThread.java:88) at org.bulldog.linux.io.LinuxEpollThread.run(LinuxEpollThread.java:57) at java.lang.Thread.run(Thread.java:744)
— Reply to this email directly or view it on GitHub https://github.com/Datenheld/Bulldog/issues/9.
This has been fixed in the most recent version.
By default, PinFeatures are not torn down during shutdown anymore.
Instead, the user must choose to do so by calling setTeardownOnShutdown().
Am 28.08.2014 um 18:59 schrieb eschava:
I started two apps listening for interrupts of the same GPIO port When one of them is closed - other prints exception
Exception in thread "Thread-14" java.lang.NullPointerException at org.bulldog.linux.gpio.LinuxDigitalInput.getEdge(LinuxDigitalInput.java:115) at org.bulldog.linux.gpio.LinuxDigitalInput.processEpollResults(LinuxDigitalInput.java:99) at org.bulldog.linux.io.LinuxEpollThread.fireEpollEvent(LinuxEpollThread.java:88) at org.bulldog.linux.io.LinuxEpollThread.run(LinuxEpollThread.java:57) at java.lang.Thread.run(Thread.java:744)
— Reply to this email directly or view it on GitHub https://github.com/Datenheld/Bulldog/issues/9.
I started two apps listening for interrupts of the same GPIO port When one of them is closed - other prints exception
Exception in thread "Thread-14" java.lang.NullPointerException at org.bulldog.linux.gpio.LinuxDigitalInput.getEdge(LinuxDigitalInput.java:115) at org.bulldog.linux.gpio.LinuxDigitalInput.processEpollResults(LinuxDigitalInput.java:99) at org.bulldog.linux.io.LinuxEpollThread.fireEpollEvent(LinuxEpollThread.java:88) at org.bulldog.linux.io.LinuxEpollThread.run(LinuxEpollThread.java:57) at java.lang.Thread.run(Thread.java:744)