memory assert when delete SkCanvas object

Issue

This Content is from Stack Overflow. Question asked by thunder_lei

When I use “delete mCanvas” to delete a SkCanvas object, debug with VS2022, I get a memory assert “A breakpoint instruction was executed”.

From the stack, “skia.dll!SkCanvas::vector deleting destructor(unsigned int)” is being called. Why does this happen? How should we delete SkCanvas object?

Thanks



Solution

Check the Answers

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?