Orbbec ASTRA Setup

I am programming with this sample program provided in the manual.
Here is the code I used:

#include “stdafx.h”
#include “astra/astra.hpp”

#include

int main(int argc, char** argv)
{
astra::initialize();

astra::StreamSet streamSet;
astra::StreamReader reader = streamSet.create_reader();

reader.stream<astra::DepthStream>().start();

astra::Frame frame = reader.get_latest_frame();
const auto depthFrame = frame.get<astra::DepthFrame>();

const int frameIndex = depthFrame.frame_index();
const short pixelValue = depthFrame.data()[0];

std::cout << std::endl
	<< "Depth frameIndex: " << frameIndex
	<< " pixelValue: " << pixelValue
	<< std::endl
	<< std::endl;

astra::terminate();

std::cout << "hit enter to exit program" << std::endl;
std::cin.get();

return 0;

}

Exception thrown at 0x00007FFA65E0C7D6 (astra_core.dll) in ConsoleApplication1.exe: 0xC0000005: Access violation reading location 0x000002B80004001B.

If there is a handler for this exception, the program may be safely continued.

Why do I get an access violation reading location error