@toxonic The problem is that when the parameter order switches after a compilation - I need to keep the connections alive so that modulation or slider connections will retain their target but that's why this function is for.
@Casey-Kolb I don't think it will help but just in case : I had very recently encountered crashes on different daws on Windows caused by the convolution fx (or so it seems). I didn't build the plugin with IPP. Rebuilding it with IPP fixed the crash problem.
Ok I found that the problem is when changing from mono to Stereo Samples because is only happening in one multimic channel, I changed the mono samples to "fake Stereo" and the problem disappears, maybe the sampler is retaining the multimic information from the latest expansion sample map.