Skip to content
Discussion options

You must be logged in to vote

It's hard to say just based on this. It sounds like you have some some form of memory corruption going on. Try compiling with address sanitizer or running with another memory sanitizer tool to try to figure out where the actual issue occurs. There are some further hints here you could take a look at: https://mikke89.github.io/RmlUiDoc/pages/cpp_manual/troubleshooting.html

This one in particular:

When you call ElementDocument::Close(), make sure event listeners attached to any element of the document are kept alive until the next call to Context::Update() or Rml::Shutdown().

I don't know what your documents member owns exactly, but if it is tied to the lifetime of your event listeners, t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zxylllll
Comment options

@mikke89
Comment options

Answer selected by zxylllll
@zxylllll
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants