Trying to create an SQS queue with AWS C++ SDK.
Aws::SDKOptions options;
Aws::InitAPI(options);
Aws::Client::ClientConfiguration configuration;
configuration.region = Aws::Region::US_WEST_2;
Aws::SQS::SQSClient sqs = new Aws::SQS::SQSClient(Aws::Auth::AWSCredentials("abc", "def"), configuration);
Running on Windows, 64 bit, VC++.
When I run I will get an access violation:
Exception thrown at 0x000007FEE4E9C83C (aws-cpp-sdk-core.dll) in TestDB.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
This will happen deep in the call chain of the sdk. There are no parameters I can pass here as null pointers, so i'm not sure what it can be. I'm able to run against S3 with no issues, just SQS.
It looks like a missing initialization (but Aws::InitAPI(options); is called), or something with the memory management (which i use the default). Latest SDK version.
Any help or ideas will be appreciated.
-Yishai
Aucun commentaire:
Enregistrer un commentaire