My code runs fine with Debug mode, or Release mode and disabled Optimization. When I turn optimization to maximize speed or Full Optimization, it hangs and doesn't do anything.
I have an interface class (since it may be a different oscilloscope attached other than the PicoScope), and with each other scope tested it works fine.
The code which calls the functions does this:
ScopeControl* mScope = new PicoScope();
and then in a loop:
// Fire the measurement system
and that loop hangs for some reason unknown to me. Anyone have a pointer what might be causing this, and only with optimization turned on?
I just tried to analyze data acquired in release mode, optimization turned off, turns out, all the data returned is 0. What is happening here?