Skip to content

AcessViolation in FileDrop event #32

Description

@Ruannilton
 private static void OnWindowFileDrop(object sender, FileDropEventArgs e)
    {
        foreach (var item in e.Filenames)
        {
            Console.WriteLine(item);
        }
    }

Exception:
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Runtime.InteropServices.Marshal.ReadByte(IntPtr, Int32)
at GLFW.Util.PtrToStringUTF8(IntPtr)
at GLFW.NativeWindow.OnFileDrop(Int32, IntPtr)
at GLFW.NativeWindow.b__115_4(IntPtr, Int32, IntPtr)
at GLFW.Glfw.WaitEvents()
at GLFW.Glfw.WaitEvents()
at Program.Main(System.String[])

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