#28 Possible Memory Leak

v2.2.7
closed-fixed
5
2010-11-11
2010-10-18
DerEngel
No

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.

Discussion

  • Travis Robinson

    Travis Robinson - 2010-10-19
    • status: open --> open-accepted
     
  • Travis Robinson

    Travis Robinson - 2010-10-19

    I believe this issue is fixed in the HEAD svn branch. Would it be possible for you to confirm this?

     
  • DerEngel

    DerEngel - 2010-10-20

    The project is using the newest compiled LibUsbDotNet.dll binary, version 2.2.7.85. Do you mean a version newer than this? Or do you have a DLL that I can test?

     
  • Travis Robinson

    Travis Robinson - 2010-10-29
    • status: open-accepted --> pending-fixed
     
  • Travis Robinson

    Travis Robinson - 2010-10-29

    I've just released version 2.2.8 which I believe solves this problem. If the problem persists, please let me know.

     
  • DerEngel

    DerEngel - 2010-10-30
    • status: pending-fixed --> open-fixed
     
  • DerEngel

    DerEngel - 2010-10-30

    It appears fixed! Thank you.

    I will let you know if I find any other bugs.

     
  • Travis Robinson

    Travis Robinson - 2010-11-11
    • status: open-fixed --> closed-fixed
     
  • Travis Robinson

    Travis Robinson - 2010-11-11
    • milestone: --> v2.2.7
     

Log in to post a comment.