Calling UsbDevice.AllDevices slowly eats up memory. In my program, when my USB device is not connected, I use this function to retrieve a list of devices and then check to see if my device is present. I have a delay of 1 second between calls, and after 3-4 hours, the application has allocated over 500MB of memory.
To test this bug, I made another simple program that just calls that and it does slowly allocate memory until the system runs out of memory and the application crashes.
Log in to post a comment.