Welcome Guest Search | Active Topics | Members

Multi-threading Options
undead80
Posted: Saturday, February 23, 2008 3:29:20 AM
Rank: Member
Groups: Member

Joined: 1/8/2008
Posts: 28
Points: 84
Code:
                _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.
Dmitry
Posted: Wednesday, February 27, 2008 3:29:45 PM
Rank: Advanced Member
Groups: Administration , Member

Joined: 8/3/2003
Posts: 607
Points: 651
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.

Sincerely yours,
Dmitry Sevostyanov.
undead80
Posted: Thursday, February 28, 2008 3:52:28 AM
Rank: Member
Groups: Member

Joined: 1/8/2008
Posts: 28
Points: 84
Dmitry wrote:
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.
Alex Kon
Posted: Wednesday, March 12, 2008 5:39:51 AM
Rank: Advanced Member
Groups: Administration , Member

Joined: 1/31/2005
Posts: 388
Points: 409
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.


Best wishes, Alex.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.