__acrt_first_block==访问azure存储的标头异常 我对C++非常陌生,并且使用Azure存储CPP库访问存储容器有困难。

__acrt_first_block==访问azure存储的标头异常 我对C++非常陌生,并且使用Azure存储CPP库访问存储容器有困难。,c++,azure,heap,C++,Azure,Heap,下面是我的代码,它将列出有关容器的信息 bool AzureProducer::execute() { // Define the connection-string with your values. const utility::string_t storage_connection_string(U("my redacted connection string here")); // Retrieve storage accou

下面是我的代码,它将列出有关容器的信息

bool AzureProducer::execute()
{
    // Define the connection-string with your values.
    const utility::string_t
        storage_connection_string(U("my redacted connection string here"));

    // Retrieve storage account from connection string.
    azure::storage::cloud_storage_account storage_account = azure::storage::cloud_storage_account::parse(storage_connection_string);

    // Create the blob client.
    azure::storage::cloud_blob_client blob_client = storage_account.create_cloud_blob_client(); 

    // Retrieve a reference to a previously created container.
    azure::storage::container_result_iterator iterator = blob_client.list_containers();

    azure::storage::container_result_iterator end_of_results;
    for (auto it = iterator; it != end_of_results; ++it)
    {
        ucout << U("Container, Name = ") << it->name() << ", URI = " << it->uri().primary_uri().to_string() << std::endl;
    }

    return mExitFlag;
}
bool-AzureProducer::execute()
{
//使用您的值定义连接字符串。
常量实用工具::字符串\u t
存储连接字符串(这里是“我的编辑连接字符串”);
//从连接字符串中检索存储帐户。
azure::存储::云存储\帐户存储\帐户=azure::存储::云存储\帐户::解析(存储\连接\字符串);
//创建blob客户端。
azure::storage::cloud\u blob\u client blob\u client=存储帐户。创建\u cloud\u blob\u client();
//检索对以前创建的容器的引用。
azure::storage::container\u result\u迭代器迭代器=blob\u客户端。列出容器();
azure::storage::容器\u结果\u迭代器\u结果的结束\u;
for(自动it=迭代器;it!=结果的结束;++it)
{

ucout所以在试图找出根本原因时,我只使用nuget的azure存储cpp库设置了一个新的VS解决方案。在我尝试更新我的项目以使用/MTd(静态链接)之前,一切似乎都正常工作。是否可以在静态链接的环境中使用azure storage cpp?除了azure storage cpp之外,我还可以使用其他静态链接的替代方案吗?您找到此问题的根本原因了吗?我遇到了完全相同的错误。请也让我知道。我在尝试找出根本原因时遇到了相同的错误。因此,我设置了一个新的VS s仅使用nuget提供的azure存储cpp库解决方案。在我尝试将项目更新为使用/MTd(静态链接)之前,一切似乎都正常工作。是否可以在静态链接的环境中使用azure storage cpp?除了azure storage cpp之外,我还可以使用其他静态链接的替代方案吗?您找到此问题的根本原因了吗?我遇到了完全相同的错误。请让我知道这一点。我遇到了相同的错误
wastoraged.dll!std::_Wrap_alloc<std::allocator<std::_Container_proxy> >::deallocate(std::_Container_proxy * _Ptr, unsigned __int64 _Count) Line 988 C++
wastoraged.dll!std::_String_alloc<std::_String_base_types<wchar_t,std::allocator<wchar_t> > >::_Free_proxy() Line 661   C++
wastoraged.dll!std::_String_alloc<std::_String_base_types<wchar_t,std::allocator<wchar_t> > >::~_String_alloc<std::_String_base_types<wchar_t,std::allocator<wchar_t> > >() Line 628    C++
wastoraged.dll!std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >::~basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >() Line 1018 C++
wastoraged.dll!azure::storage::storage_extended_error::~storage_extended_error()    C++
wastoraged.dll!azure::storage::request_result::~request_result()    C++
wastoraged.dll!azure::storage::request_result::`scalar deleting destructor'(unsigned int)   C++
wastoraged.dll!std::allocator<azure::storage::request_result>::destroy<azure::storage::request_result>(azure::storage::request_result * _Ptr) Line 745  C++
wastoraged.dll!std::allocator_traits<std::allocator<azure::storage::request_result> >::destroy<azure::storage::request_result>(std::allocator<azure::storage::request_result> & _Al, azure::storage::request_result * _Ptr) Line 865    C++
wastoraged.dll!std::_Wrap_alloc<std::allocator<azure::storage::request_result> >::destroy<azure::storage::request_result>(azure::storage::request_result * _Ptr) Line 1004  C++
wastoraged.dll!std::_Destroy_range1<std::allocator<azure::storage::request_result>,azure::storage::request_result * __ptr64>(azure::storage::request_result * _First, azure::storage::request_result * _Last, std::_Wrap_alloc<std::allocator<azure::storage::request_result> > & _Al, std::integral_constant<bool,0> __formal) Line 1101   C++
wastoraged.dll!std::_Destroy_range<std::allocator<azure::storage::request_result>,azure::storage::request_result * __ptr64>(azure::storage::request_result * _First, azure::storage::request_result * _Last, std::_Wrap_alloc<std::allocator<azure::storage::request_result> > & _Al) Line 1121 C++
wastoraged.dll!std::<azure::storage::request_result,std::allocator<azure::storage::request_result> >::_Destroy(azure::storage::request_result * _First, azure::storage::request_result * _Last) Line 1582   C++
wastoraged.dll!std::<azure::storage::request_result,std::allocator<azure::storage::request_result> >::_Tidy() Line 1641 C++
wastoraged.dll!std::<azure::storage::request_result,std::allocator<azure::storage::request_result> >::~<azure::storage::request_result,std::allocator<azure::storage::request_result> >() Line 976  C++
wastoraged.dll!azure::storage::_operation_context::~_operation_context()    C++
wastoraged.dll!azure::storage::_operation_context::`scalar deleting destructor'(unsigned int)   C++
wastoraged.dll!std::_Ref_count_obj<azure::storage::_operation_context>::_Destroy() Line 913 C++
wastoraged.dll!std::_Ref_count_base::_Decref() Line 113 C++
wastoraged.dll!std::_Ptr_base<azure::storage::_operation_context>::_Decref() Line 339   C++
wastoraged.dll!std::shared_ptr<azure::storage::_operation_context>::~shared_ptr<azure::storage::_operation_context>() Line 567  C++
wastoraged.dll!azure::storage::operation_context::~operation_context()  C++
wastoraged.dll!azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64)::~azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64)()  C++
wastoraged.dll!std::_Compressed_pair<std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),1>::~_Compressed_pair<std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),1>() C++
wastoraged.dll!std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>::~_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>() Line 169  C++
wastoraged.dll!std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>::`scalar deleting destructor'(unsigned int)    C++
wastoraged.dll!std::allocator<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> >::destroy<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> >(std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const &,unsigned __int64> * _Ptr) Line 745   C++
wastoraged.dll!std::allocator_traits<std::allocator<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> > >::destroy<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> >(std::allocator<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const &,unsigned __int64> > & _Al, std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const &,unsigned __int64> * _Ptr) Line 865 C++
wastoraged.dll!std::_Wrap_alloc<std::allocator<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> > >::destroy<std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64> >(std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const &,unsigned __int64> * _Ptr) Line 1004   C++
wastoraged.dll!std::_Func_impl<azure::storage::result_segment<azure::storage::cloud_blob_container> <lambda>(const azure::storage::continuation_token &, unsigned __int64),std::allocator<int>,azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>::_Delete_this(bool _Deallocate) Line 229   C++
MyProgram.exe!std::_Func_class<azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>::_Tidy() Line 387  C++
MyProgram.exe!std::_Func_class<azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>::~_Func_class<azure::storage::result_segment<azure::storage::cloud_blob_container>,azure::storage::continuation_token const & __ptr64,unsigned __int64>() Line 285 C++
MyProgram.exe!std::function<azure::storage::result_segment<azure::storage::cloud_blob_container> __cdecl(azure::storage::continuation_token const & __ptr64,unsigned __int64)>::~function<azure::storage::result_segment<azure::storage::cloud_blob_container> __cdecl(azure::storage::continuation_token const & __ptr64,unsigned __int64)>() Line 528 C++
MyProgram.exe!azure::storage::result_iterator<azure::storage::cloud_blob_container>::~result_iterator<azure::storage::cloud_blob_container>()   C++
MyProgram.exe!AzureProducer::execute()  C++