Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lamizi opened this issue Oct 14, 2021 · 8 comments
Open

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

lamizi opened this issue Oct 14, 2021 · 8 comments

Comments

@lamizi
Copy link

lamizi commented Oct 14, 2021

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
Copy link
Member

Jinming-Hu commented Oct 15, 2021

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
Copy link
Author

lamizi commented Oct 15, 2021

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
Copy link
Member

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

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

@lamizi
Copy link
Author

lamizi commented Oct 15, 2021

@Jinming-Hu
Copy link
Member

@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
Copy link
Author

lamizi commented Oct 15, 2021

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

@Jinming-Hu
Copy link
Member

@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
Copy link
Author

lamizi commented Oct 18, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants