| 
      
      
      From: Paul E. F. <pe...@bi...> - 2006-08-25 10:57:56
      
     | 
| Hi again,
=20
I have traced the -ENOMEM down to windows.c - usb_submit_async()=20
=20
  if(!DeviceIoControl(c->dev->impl_info,=20
                      c->control_code,=20
                      &c->req, sizeof(libusb_request),=20
                      c->bytes,=20
                      c->size, &ret, &c->ol))
    {
      if(GetLastError() !=3D ERROR_IO_PENDING)
        {
          USB_ERROR_STR(-win_error_to_errno(), "usb_submit_async: "
                        "error: %s", win_error_to_string());
        }
    }
one of the parameters (maybe c->size or c->bytes ...) must be negative =
or too big.
=20
Btw. does anybody have a working project or workspace for Visual Studio =
that can rebuild the .dll ?
=20
=20
________________________________
	Fra: lib...@li... =
[mailto:lib...@li...] P=E5 vegne af =
Paul Erik Farre
	Sendt: 25. august 2006 09:41
	Til: lib...@li...
	Emne: [Libusb-win32-devel] usb_interrupt_write -> ENOMEM ?
=09
=09
	LIBUSB_DLL error: usb_submit_async: error: Der er ikke tilstr=E6kkelig =
ledig hukommelse til at behandle denne kommando.
	    -12 =3D ENOMEM     Not enough memory to execute this command
	=20
	How do one solve this problem ? Simply add system memory ?
	=20
	Windows XP (Professional version 2002) SP1 , 512M Ram , Intel P4 2GHz.=20
=09
	Regards
	Paul
 |