Jump to content

Layer modus 'Reflect' throws exception


ralf_net

Recommended Posts

I draw a picture with 2 layers and I set the layer modus of the second layer to 'reflect' and then Paint.NET crashes. Here the crash-log:

Crash log for Paint.NET v2.6 (Alpha 1 Release Build 2.6.2172.30793)

Time of crash: 15.12.2005 17:18:27

OS version: 5.1.2600.131072

.NET Framework version: 2.0.50727.42 X86

Processor count: 1

Exception details:

System.IndexOutOfRangeException: Index was outside the bounds of the array.

at PaintDotNet.UserBlendOps.ReflectBlendOp.Apply(ColorBgra* dst, ColorBgra* src, Int32 length)

at PaintDotNet.BitmapLayer.RenderImpl(RenderArgs args, Rectangle[] rois, Int32 startIndex, Int32 length)

at PaintDotNet.Document.Render(RenderArgs args, Rectangle[] roi, Int32 startIndex, Int32 length, Boolean clearBackground)

at PaintDotNet.Document.Update(RenderArgs dst)

at PaintDotNet.DocumentView.surfaceBox_PrePaint(Object sender, PaintEventArgs2 e)

at PaintDotNet.SurfaceBox.OnPrePaint(PaintEventArgs2 e)

at PaintDotNet.SurfaceBox.OnPaintImpl(PaintEventArgs2 e)

at PaintDotNet.SurfaceBox.OnPaint(PaintEventArgs e)

at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

at System.Windows.Forms.Control.WmPaint(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at PaintDotNet.SurfaceBox.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

------------------------------------------------------------------------------

Ralf

Paint.NET and Sharp Develop - two powerful examples for the .NET technology

Link to comment
Share on other sites

Reflect mode crash, it's a known bug.

Yup, and Reflect does the same thing. It's fixed for our next release.

We had a case of "a - b * 3" instead of "(a - B) * 3" that we didn't catch before release.

No. Way. I've just seen Bob. And... *poof!*—just like that—he disappears into the mist again. ~Helio

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...