Azure / azure-storage-cpp

Microsoft Azure Storage Client Library for C++
http://azure.github.io/azure-storage-cpp
Apache License 2.0
131 stars 147 forks source link

__Rootnode was nullptr (Exception in xtree only Debug configuration) #409

Open lamizi opened 2 years ago

lamizi commented 2 years ago

Hello!

I use the azure-storage-cpp via vcpkg in my project. In Release configuration everything works well.

In Debug configuration it stops on xtree file in line 1664 with the message _Rootnode was nullptr.

My current workaround ist to copy the release wastorage.dll into vcpkg debug bin folder. So that the release version of the dll was used in debug mode.

I am not completely satisfied with this solution. Is there a better solution?

Thanks for your help!

Greetings Lars

Jinming-Hu commented 2 years ago

Hi @lamizi , can you share some steps to reproduce this issue so that I can investigate?

Usually it's caused by a bug in storage sdk.

lamizi commented 2 years ago

Hello @Jinming-Hu, I have invited you to a test repository. In that, I have a similar issue. In debug mode it crashes.

But, in fact of third party libraries I have to compile with NDEBUG and /MD

Jinming-Hu commented 2 years ago

Hi @lamizi , I didn't receive the invitation email.

Can you share the project URL so that I can find the invitation link?

lamizi commented 2 years ago

https://github.com/lamizi/AzureStorageCppIssue

Jinming-Hu commented 2 years ago

@lamizi Can you double check you've invited me to that repo? I didn't receive the email, and I cannot open the link https://github.com/lamizi/AzureStorageCppIssue/invitations

lamizi commented 2 years ago

Sorry, wrong user... :-( You got it?

Jinming-Hu commented 2 years ago

@lamizi Hi, can you try to switch Runtime Library option in vs proj config? For debug build, you should be using /MTd or /MDd

image

lamizi commented 2 years ago

I can't set this in my main project because of the use of third party libraries. However, I have tested it in that solution. Unfortunately also without success.