Issue:
- Software crashed when changing the camera AOI parameters.
Solution:
-Use GetInc/GetMin/GetMax to make sure you set a valid value.
-For example,
// Some properties have restrictions. Use GetInc/GetMin/GetMax to make sure you set a valid value. int64_t newWidth = 202; newWidth = Adjust(newWidth, width->GetMin(), width->GetMax(), width->GetInc()); int64_t newHeight = 101; newHeight = Adjust(newHeight, height->GetMin(), height->GetMax(), height->GetInc()); width->SetValue(newWidth); height->SetValue(newHeight);