Skip to content

Fix application exit for linux/raspberrpi #34

Open
@jjcarrier

Description

@jjcarrier

This issue has been seen both on a Linux PC (x64) and RaspberryPi when the application is exiting interactive mode.
This may be due to disposal while a transaction is in progress.

Unhandled exception. System.ObjectDisposedException: Closed.
   at HidSharp.Platform.SysHidStream.CommonWrite(Byte[] buffer, Int32 offset, Int32 count, Queue`1 queue, Boolean feature, Int32 maxOutputReportLength) in V:\CLI\vicon\modules\HidSharp\HidSharp\Platform\SysHidStream.cs:line 127
   at HidSharp.HidStream.Write(Byte[] buffer) in V:\CLI\vicon\modules\HidSharp\HidSharp\HidStream.cs:line 110
   at LibDP100.PowerSupply.ProcessTransaction(Byte[] outputReport, HandleResponseDelegate handler) in V:\CLI\vicon\libdp100\PowerSupply.cs:line 1229
   at LibDP100.PowerSupply.WorkerThread() in V:\CLI\vicon\libdp100\PowerSupply.cs:line 1020
   at System.Threading.Thread.StartCallback()
Fatal error. Internal CLR error. (0x80131506)
   at HidSharp.Platform.SysHidStream.CommonWrite(Byte[], Int32, Int32, System.Collections.Generic.Queue`1<CommonOutputReport>, Boolean, Int32)
   at HidSharp.HidStream.Write(Byte[])
   at LibDP100.PowerSupply.ProcessTransaction(Byte[], HandleResponseDelegate)
   at LibDP100.PowerSupply.WorkerThread()
   at System.Threading.Thread.StartCallback()

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions