Changing Exposure with Windows Forms

asked 2017-08-01 09:18:19 -0500

DavidR gravatar image

Hello,

Every time I run this bit of code meant to change the value of the exposure with a trackbar and I am getting an error saying System Access Violation, attempted to read or write to protected memory. I am using C++ with windows forms with a range from 1 to 13.

My code is below

public: System::Void trackBar2_Scroll(System::Object^ sender, System::EventArgs^ e) {

varEx = System::Convert::ToDouble(this->trackBar2->Value);

cap.set(CAP_PROP_EXPOSURE,varEx); }

edit retag flag offensive close merge delete