Skip to content

2018-03-25 20:40:59 JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100 #36

@makarna35

Description

@makarna35

Hi;

I'm try only this:
`class HotPlugEventWatcher implements ISerialComUSBHotPlugListener {

@Override
public void onUSBHotPlugEvent(int event, int usbvid, int usbpid, String serialNumber) {

    if(event == SerialComUSB.DEV_ADDED) {
        System.out.println("DUT added, running automated tests for this device !");

    }else if(event == SerialComUSB.DEV_REMOVED) {
        System.out.println("DUT removed, running tests, if any, to be run after device removal !");
        System.out.println("usbvid : " + usbvid);
    }else {
    }
    
}

}`

If I'm unplug my usb Device from USB port netbeans show this message:

2018-03-25 20:40:59 JNI call ThrowNew failed to throw exception !, FormatMessageA(), error code : 15100

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