Re: [Libusbx-devel] Crashes

2012-12-10 Thread Xiaofan Chen
On Tue, Dec 11, 2012 at 8:16 AM, Pete Batard wrote: > On 2012.12.10 11:39, Toby Gray wrote: >> Using a special device sounds like a good idea, especially as there are >> already a selection of different firmwares available. Is there a >> particular pre-made board that contains a suitable PIC or AV

Re: [Libusbx-devel] Crashes

2012-12-10 Thread Pete Batard
On 2012.12.10 11:39, Toby Gray wrote: > Using a special device sounds like a good idea, especially as there are > already a selection of different firmwares available. Is there a > particular pre-made board that contains a suitable PIC or AVR chip that > people would recommend? I think Xiaofan, Tr

Re: [Libusbx-devel] Crashes

2012-12-10 Thread Toby Gray
On 26/11/12 22:54, Pete Batard wrote: > On 2012.11.26 13:34, Toby Gray wrote: >> Excellent. I'll try to find time to do some improvements and possibly >> even add some tests which perform some IO. My thinking for tests which >> require particular types of devices would be that they get marked as >>

Re: [Libusbx-devel] Crashes

2012-11-26 Thread Xiaofan Chen
On Tue, Nov 27, 2012 at 6:54 AM, Pete Batard wrote: > On 2012.11.26 13:34, Toby Gray wrote: >> Excellent. I'll try to find time to do some improvements and possibly >> even add some tests which perform some IO. My thinking for tests which >> require particular types of devices would be that they g

Re: [Libusbx-devel] Crashes

2012-11-26 Thread Pete Batard
On 2012.11.26 13:34, Toby Gray wrote: > Excellent. I'll try to find time to do some improvements and possibly > even add some tests which perform some IO. My thinking for tests which > require particular types of devices would be that they get marked as > skipped if you don't have suitable devices

Re: [Libusbx-devel] Crashes

2012-11-26 Thread Toby Gray
On 25/11/12 01:45, Pete Batard wrote: > OK, the tests have now been pushed into mainline (as a single commit), > along with the 2 other commits that I said I'd be pushing some time ago. Excellent. I'll try to find time to do some improvements and possibly even add some tests which perform some IO

Re: [Libusbx-devel] Crashes

2012-11-24 Thread Pete Batard
OK, the tests have now been pushed into mainline (as a single commit), along with the 2 other commits that I said I'd be pushing some time ago. Toby: I renamed test_stress.c to stress.c, as I felt with the file already residing in a tests/ subdirectory, it was a bit redundant, and I applied som

Re: [Libusbx-devel] Crashes

2012-11-22 Thread Xiaofan Chen
On Fri, Nov 23, 2012 at 7:32 AM, Pete Batard wrote: >> I've also only added it to the Visual Studio 2005 build as I don't have >> a copy of VC6 or VC2008 to test changes. > > No worries. At the risk of angering some people, I don't think it's > worth spending any time on VC6 at this stage, as the

Re: [Libusbx-devel] Crashes

2012-11-22 Thread Pete Batard
On 2012.11.22 11:06, Toby Gray wrote: > I decided to go for a test directory as it turned into more than one file. Fine with me. I'm not worried that much about where the code goes, as long as the code is in. > The current work in progress is on my (badly named) testing branch: > https://github.

Re: [Libusbx-devel] Crashes

2012-11-22 Thread Toby Gray
On 13/11/12 18:49, Ludovic Rousseau wrote: > I would use a test/ directory for programs used for tests (stress test > in this case). > These stress test programs should NOT be used as example by our users. > We should try to avoid possible confusion where we can. > > It can be the beginning of a

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Ludovic Rousseau
2012/11/13 Pete Batard > On 2012.11.13 10:23, Toby Gray wrote: > > I've been tempted to write a simple test application to do things > > similar to this for a while now. Just a few for loops which call various > > APIs many hundreds of times to help detect memory leaks. > > That would be nice. I

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Pete Batard
On 2012.11.13 07:32, Stefano Di Martino wrote: > Via PyUSB I check every 2 seconds, if a usb device has been attached or > dettached on a specific usb hub. After 32 times, I get the error > "No such device (it may have been disconnected)". > > The developer of PyUSB said, that it may has to do som

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Pete Batard
On 2012.11.13 10:23, Toby Gray wrote: > I've been tempted to write a simple test application to do things > similar to this for a while now. Just a few for loops which call various > APIs many hundreds of times to help detect memory leaks. That would be nice. I see no issue adding such a test app

Re: [Libusbx-devel] Crashes

2012-11-13 Thread Toby Gray
On 12/11/12 20:09, Pete Batard wrote: > Hi Stefano, > > On 2012.11.12 12:06, Stefano Di Martino wrote: >> is this supposed to crash, when you don't free a list? >> >> for(i = 0; i < 100; i++) { >> cnt = libusb_get_device_list(NULL, &devs); >> if (cnt < 0) >> return (int) cnt;

Re: [Libusbx-devel] Crashes

2012-11-12 Thread Stefano Di Martino
Original-Nachricht > Datum: Mon, 12 Nov 2012 20:09:27 + > Von: Pete Batard > An: libusbx-devel@lists.sourceforge.net > Betreff: Re: [Libusbx-devel] Crashes > 1. What is the exact version of libusbx you are using (should be > something like 1.0.14.105

Re: [Libusbx-devel] Crashes

2012-11-12 Thread Pete Batard
Hi Stefano, On 2012.11.12 12:06, Stefano Di Martino wrote: > is this supposed to crash, when you don't free a list? > > for(i = 0; i < 100; i++) { > cnt = libusb_get_device_list(NULL, &devs); > if (cnt < 0) > return (int) cnt; > //if (i < 99) > //libusb_free_device