Error cannot obtain value
Error cannot obtain value visual studio
Cannot obtain value of the local variable or argument because it is not available at this instruction pointer, possibly because it has been optimized away.
Go to Project Properties and under Build Make sure that the “Optimize Code” checkbox is unchecked.
Also, set the “Debug Info” dropdown to “Full” in the Advanced Options (Under Build tab).