Skip to content

Exception thrown if data changed while plotting in another thread #609

@ZTaiIT1025

Description

@ZTaiIT1025

Describe the bug and how we can reproduce it.

// a code sample may improve communication
```System.InvalidOperationException: 对象当前正在其他地方使用 System.Drawing.Image.get_FrameDimensionsList()
   在 System.Drawing.ImageAnimator.CanAnimate(Image image)
   在 System.Drawing.ImageAnimator.ImageInfo..ctor(Image image)
   在 System.Drawing.ImageAnimator.Animate(Image image, EventHandler onFrameChangedHandler)
   在 System.Windows.Forms.PictureBox.Animate(Boolean animate)
   在 System.Windows.Forms.PictureBox.Animate()
   在 System.Windows.Forms.PictureBox.InstallNewImage(Image value, ImageInstallationType installationType)
   在 System.Windows.Forms.PictureBox.set_Image(Image value)
   在 ScottPlot.FormsPlot.Render(Boolean skipIfCurrentlyRendering, Boolean lowQuality, Boolean recalculateLayout) 
位置 E:\\AcquisitionFrame\ScottPlot-master\src\ScottPlot.WinForms\FormsPlot.cs:行号 108
   在 AcquisitionFrame.View.Panels.OP1130_P10.tPlot(AutoResetEvent& Stop) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions