Azure/azure-storage-cpp

__Rootnode was nullptr (Exception in xtree only Debug configuration)

lamizi opened this issue · 8 comments

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

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.

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

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

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

@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

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

@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

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.