PORTS Forum

Ports and Interfaces => USB => Topic started by: SeaLyon on October 06, 2010, 02:14:47 am

Title: Memory Leak in Find The Hid
Post by: SeaLyon on October 06, 2010, 02:14:47 am
I have been using the visual basic reference code (2005 version) for some time now but noticed recently that there appears to be a slow memory leak in the Findthehid() routine. When it is called repeatedly it starts to leak memory. I have looked through it but have not been able to target the exact point within the procedure that is leaking the memory. Has anyone come across this and been able to stop the leak?

Thanks,
Craig
Title: Re: Memory Leak in Find The Hid
Post by: Jan Axelson on October 06, 2010, 09:24:29 am
Try the latest version at www.Lvr.com/hidpage.htm

If that doesn't help, how are you detecting the memory leak?

Jan
Title: Re: Memory Leak in Find The Hid
Post by: SeaLyon on October 13, 2010, 12:29:09 pm
I'll give the new one a try. I was detecting the leak by using a timer to repeatedly call FindTheHid() and then watch the resource meter in task manager to see the memory allocation slowly increase for the application.