OptrisOptrisDocumentation

Documentation/OTC SDK/Optris.Sdk — C# API referencev12.0

DeviceBusyReason

public enum DeviceBusyReason

Why an operation reported the camera as busy.

DeviceBusyException covers three unrelated conditions and reported which only in its message, so a client showing "in use by another application" showed it for its own double open and for a camera nothing was holding at all.

Listed in the order the SDK decides them, which is the order that applies: the claim is examined before the stream is opened, so a refusal reporting DeviceBusyReason.FormatNotAccepted met no claim.

New values may be appended, so a switch over this wants a default arm, and the honest default is to show Exception.Message, exactly as before this existed.

Value
Unknown 0 The refusal did not say. Not an answer.
ClaimedByAnotherProcess 1 Another program on this machine holds the camera.
AlreadyOpenInThisProcess 2 This application already has the camera open, and nothing is releasing it.
HandoverInThisProcess 3 This application is still opening or still releasing the camera, and did not finish inside the SDK's own wait.
FormatNotAccepted 4 Nothing holds the camera. The stream would not come up in the video format the operation needs.