Skip to content

Library crashes on native methods call #6

Description

@pingvincible

Hi, I have Windows 8.1 professional OS. I've downloaded UsbEject library and created simple winforms project. And I have lots of errors with native method calls. One of error is "The supplied user buffer is not valid for the requested operation" when calling

Native.SetupDiGetDeviceInterfaceDetail(_deviceInfoSet, interfaceData, buffer ,size, ref size, devData)
in DeviceClass.

I tried x86, x64, AnyCPU configurations and I got different errors on different native function calls.

Can you help me with this?

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