Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Pranjal  
#1 Posted : Monday, August 25, 2014 2:09:52 AM(UTC)
Pranjal

Rank: Newbie

Groups: Member
Joined: 7/30/2014(UTC)
Posts: 2

Hello,
I have written a basic image editing app in c#.
The code for applying HSL corrections is almost ALWAYS throwing this SEHException

Code:
private static void amaro(BitmapViewer viewer)
{
    Bitmap bitmap = viewer.Bitmap;
    bitmap.ColorAdjustment.BrightnessContrast(0.2f, 0.106f);
    bitmap.ColorAdjustment.AdjustHsl(0.06f, -0.226f, 0.066f);
    viewer.Bitmap = bitmap;
}


Code:
The exception details are as follows:
System.Runtime.InteropServices.SEHException was unhandled
  HResult=-2147467259
  Message=External component has thrown an exception.
  Source=Aurigma.GraphicsMill
  ErrorCode=-2147467259
  StackTrace:
       at Aurigma.GraphicsMill.PipelineElement.RunPipeline()
       at Aurigma.GraphicsMill.Pipeline.Run()
       at Aurigma.GraphicsMill.Pipeline.Run(Pipeline pipeline)
       at Aurigma.GraphicsMill.Transforms.Transform.Apply(Bitmap source)
       at Aurigma.GraphicsMill.ColorAdjustmentProvider.ApplyAndDeleteTransform(IBitmapTransform transform)
       at Aurigma.GraphicsMill.ColorAdjustmentProvider.AdjustHsl(Single hue, Single saturation, Single lightness)
       at InstaposeSoftwareSuite.Filters.amaro(BitmapViewer viewer) in C:\Users\instapose imagery\Desktop\InstaposeSoftwareSuite\InstaposeSoftwareSuite\Filters.cs:line 144
       at InstaposeSoftwareSuite.Filters.applyFilter(String filterName, BitmapViewer viewer) in C:\Users\instapose imagery\Desktop\InstaposeSoftwareSuite\InstaposeSoftwareSuite\Filters.cs:line 20
       at InstaposeSoftwareSuite.EditForm.routeToFilter(String filterName) in C:\Users\instapose imagery\Desktop\InstaposeSoftwareSuite\InstaposeSoftwareSuite\EditForm.cs:line 36
       at InstaposeSoftwareSuite.EditForm.changeFilterByChildPicture(Object sender, EventArgs e) in C:\Users\instapose imagery\Desktop\InstaposeSoftwareSuite\InstaposeSoftwareSuite\EditForm.cs:line 58
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at InstaposeSoftwareSuite.Program.Main() in C:\Users\instapose imagery\Desktop\InstaposeSoftwareSuite\InstaposeSoftwareSuite\Program.cs:line 18
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:




Anybody encountered similar exception?
any fixes for the same?

Thanks,

Edited by moderator Monday, August 25, 2014 10:22:49 AM(UTC)  | Reason: Not specified

Fedor  
#2 Posted : Monday, August 25, 2014 10:29:55 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Which version of Graphics Mill do you use?
Best regards,
Fedor Skvortsov
Pranjal  
#3 Posted : Monday, August 25, 2014 10:35:59 AM(UTC)
Pranjal

Rank: Newbie

Groups: Member
Joined: 7/30/2014(UTC)
Posts: 2

Its the latest release
7.0
Fedor  
#4 Posted : Monday, September 22, 2014 5:16:57 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hi Pranajal,

Sorry to be replying so late. We have updated the forum and broke the notification of new posts.

What OS (version, x86/x64) do you use?

Do you experience the problem with the method AdjustHsl only?

Edited by user Monday, September 22, 2014 5:28:19 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
Users browsing this topic
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.