When dwell is enabled, we will add the dataholder to the dwellBufferManager as well, which should be a new instance of AMDSDwellSpectrualDataHolder instead of the instance of existing ones. Otherwise, that dataholder might be released by one of the two bufferGroupManager and the app will crash if the other one wants to release it.
@davidChevrier @dretrex this is the first bunch of changes based on my found last night.
When dwell is enabled, we will add the dataholder to the dwellBufferManager as well, which should be a new instance of AMDSDwellSpectrualDataHolder instead of the instance of existing ones. Otherwise, that dataholder might be released by one of the two bufferGroupManager and the app will crash if the other one wants to release it.
@davidChevrier @dretrex this is the first bunch of changes based on my found last night.