Fix the save image crash on dotnet
if repeated this some times... it crashes:
- encoder: load session
- save image (capture tab, bars)
done many tests, and tried lots of solutions, continue thinking about it
if repeated this some times... it crashes:
done many tests, and tried lots of solutions, continue thinking about it