On Thu, Jan 3, 2013 at 4:56 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Thu, Jan 3, 2013 at 4:48 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: >> Do you have other applications accessing your device at the same time? >> >> https://github.com/libusbx/libusbx/wiki/Windows-Backend#wiki-Known_Restrictions >> WinUSB does not support multiple concurrent applications (as >> per the MSDN documentation). >> http://msdn.microsoft.com/en-us/library/windows/hardware/ff540215.aspx > > So I just open ST-Link utility (ST's program) and then run the test program > (now we have two applications trying to access the ST-Link V2). > I can generate the "Access is denied" error, but it will generate the error > on the *FIRST* open, not the *SECOND* open in your case. So your issue > may still be different.
Okay, I think I know the problem. The issue should have been fixed in libusbx.git on Oct 03, 2012. https://github.com/libusbx/libusbx/commit/09759d5836766fb3b886824cd669bc0dfc149d00 It is one commit after libusbx-1.0.14 release. So you have to build the git version and then try again. It should work. -- Xiaofan ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_122712 _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel