This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Multi-threading

                _ResizeTransform = New Aurigma.GraphicsMill.Transforms.Resize(CSng(_bitmap.Width * dblresRatio), CSng(_bitmap.Height * dblresRatio), Aurigma.GraphicsMill.Transforms.InterpolationMode.HighQuality)
                AddHandler _ResizeTransform.Stopped, AddressOf _ResizeTransform_Stopped

                _ResizeTransform.Priority = Threading.ThreadPriority.BelowNormal
               _ResizeTransform.SynchronizationMode = Aurigma.GraphicsMill.SynchronizationMode.Sync




The code _ResizeTransform.SynchronizationMode is giving error of
A first chance exception of type 'System.NotImplementedException' occurred in Aurigma.GraphicsMill.dll
Please submit case if you are using async mode.

Please advice.
Hello,

You do not need to change the value of SynchronizationMode property. The property has Sync value by default, and this property is obsolete.

If you need to use multi-threading approach in your application, you need to use standard System.Threading classes along with Graphics Mill ones.
Dmitry
Hello,

You do not need to change the value of SynchronizationMode property. The property has Sync value by default, and this property is obsolete.

If you need to use multi-threading approach in your application, you need to use standard System.Threading classes along with Graphics Mill ones.


Hi,

Due i read from the website saying the .NET version is supporting multi-threading. And that code was modified from the example. Just wondering, do you have any sample on the Multi-Threading beside the current obsolete property sample? Please advice.
Hello,

Yeap, Graphics Mill for .NET supports multi-threading. For example, all static methods are thread safe and internal architecture of the library had been developed to be used in multi-threaded enviroment. So we have no changes here.

As for SynchronizationMode property - it was just some sort of helper, and we decided to remove it. It will be better (for code understanding, maintaining and reuse) to use standart .NET framework classes.

Could you describe what operations you want to be executed in a separate thread and for what reason? I will be glad to assist you with the code sample.