I am almost finished developing a plugin and I notice is flaky / crashes occasionally.
The crashes occur when laying out components after a param change, onParamChange I am calling setTargetAndDrawRects() on multiple controls.
Plugin::OnParamChange()
for each control control->setTargetAndDrawRects(IRECT(newBounds))
The crashes happen during the next Draw() call, they are not consistent and only happen every 20 param changes or so (varies), they are also different bugs mostly related to Draw() many times on rasterize font, other times on swap draw buffers or other that causes access violation, here is an example of the call stack:
Its difficult to debug this call stack or the errors, is there a safer place/way to layout my components? Should I try to create a minimal project to reproduce this issue? Any suggestions for workarounds? Appreciate it, thanks.