

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
9 messages in net.java.dev.jna.usersStructure ... has unknown size| From | Sent On | Attachments |
|---|---|---|
| Peter Nabbefeld | Apr 20, 2008 3:33 am | |
| Timothy Wall | Apr 20, 2008 4:52 am | |
| Peter Nabbefeld | Apr 20, 2008 11:01 am | |
| Timothy Wall | Apr 20, 2008 1:40 pm | |
| Peter Nabbefeld | Apr 20, 2008 1:42 pm | |
| Timothy Wall | Apr 20, 2008 2:11 pm | |
| Peter Nabbefeld | Apr 20, 2008 10:38 pm | |
| Peter Nabbefeld | Apr 20, 2008 10:38 pm | |
| Timothy Wall | Apr 23, 2008 6:12 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Structure ... has unknown size | Actions... |
|---|---|---|
| From: | Peter Nabbefeld (Pete...@gmx.de) | |
| Date: | Apr 20, 2008 3:33:07 am | |
| List: | net.java.dev.jna.users | |
Hello!
I've got one further problem:
Exception in thread "main" java.lang.IllegalArgumentException: Structure class de.epdv.tools.usbwatch.libusb.StructUsbBus has unknown size (ensure all fields are public) at com.sun.jna.Structure.calculateSize(Structure.java:783) at com.sun.jna.Structure.allocateMemory(Structure.java:203) at com.sun.jna.Structure.<init>(Structure.java:126) at com.sun.jna.Structure.<init>(Structure.java:120) at com.sun.jna.Structure.<init>(Structure.java:116) at de.epdv.tools.usbwatch.libusb.StructUsbBus.<init>(StructUsbBus.java:12) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at com.sun.jna.Structure.newInstance(Structure.java:1043) at com.sun.jna.Function.invoke(Function.java:323) at com.sun.jna.Function.invoke(Function.java:220) at com.sun.jna.Library$Handler.invoke(Library.java:204) at $Proxy0.usb_get_busses(Unknown Source) at de.epdv.tools.usbwatch.libusb.LibusbProxy.main(LibusbProxy.java:43) Java Result: 1
As You can see, all my fields are public, so don't know what to do:
public class StructUsbBus extends Structure implements Limits {
public StructUsbBus.ByReference prev, next; public byte[] dirname = new byte[PATH_MAX + 1]; public StructUsbDevice.ByReference devices; public int location; public StructUsbDevice.ByReference root_dev; }
Kind regards
Peter Nabbefeld







