Hi, I ran into a problem concerning my plugin based on IPlugEffect example. It’s rather difficult for me to track the problem down, because I just witnessed it after it may be present since a while.
The problem: I debug with reaper and just found out that it crashes exactly after the second UIClose. I had multiple different errors, but after disabling some elements which seem to be just follow up problems I got this:
File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 908
Expression: is_block_type_valid(header->_block_use)
It seems to have something to do with dynamically allocated heap memory. The plugin uses some Buffers using sample** and a float* to store some values for a frequency response meter. Until the crash the plugin works as intended. I’d provide code, but since I don’t know when this problem occured I don’t know where to start, and I don’t want to bother you with my 2000 lines plugin code. I just might not have closed the UI two times since starting the project.
So my question is: what happens, if the user closes the GUI, where can I start to search for problems?
When I enable the follow up problems again (send meter values OnIdle()), it returns
File: D:\DSP\SRPlugins\iPlug2\IGraphics\IGrap...orDelegate.cpp
Line: 90
Expression: pControl
because the data seems to be nullptr.
Environment: Windows 10, VSCE 2022, c++ v143