Skip to content

Randomic System.ArgumentException: 'Parameter is not valid' when dropping a block on the NodeEditor #35

Description

@FandangoOnCore

After implementing a custom drag and drop of the nodes from a toolbox form, when dropping a node on the NodeEditor an unhandled ArgumentException terminates the program. This seemingly happens at random.
The source of the exception is the DrawPath function of System.Drawing returning status == 2, hence the following CheckErrorStatus function is throwing StatusException.

Image

The immediate workaround was to wrap

g.DrawPath(m_p_line_hover, m_gp_hover);

in a try-catch block, but I'm still unsure what the problem is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions