0

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

  • I'm not 100% sure, but you probably need to give more context about your code for people to be able to help you. – starball Sep 04 '22 at 07:38

1 Answers1

0

I needed to build skia with extra_cflags=["/MDd"] when in debug mode. This solved my issue.

Luis Gouveia
  • 8,334
  • 9
  • 46
  • 68