C# Application - CYUSB.DLL myHidDevice.WriteOutput() creating too many new handles. Any ideas how to stop this?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
AnFa_301266
Level 3
Level 3
5 questions asked First question asked 25 replies posted

We are using the USB HID interface for data transfer between a PSoC design and host application on a PC.  Te application works fine except that we are accumulating a huge number of new handles which are created each time the  myHidDevice.WriteOutput(); function is called.  We are performing many transacions per second and our application can run for several weeks so we end up with literally millions of handles.  We can't see why this would be the case or how to manage this.  Any ideas?

Thanks

0 Likes
1 Reply
AnFa_301266
Level 3
Level 3
5 questions asked First question asked 25 replies posted

By the way, we are using V3.4.7 of the CYUSB.DLL.  I believe that this is the latest even though it appears to be around 4 years old as I can't find any references to a newer version.  Anybody know of a newer one?

Also. our application is based on the principles of the demo application included with the AN82072 application note pack.

Thanks

0 Likes