17 messages in net.java.dev.jna.usersRe: [jna-users] Array of Structures i...
FromSent OnAttachments
RWAD...@UP.COMJul 18, 2008 8:39 am 
Timothy WallJul 18, 2008 9:26 am 
RWAD...@UP.COMJul 18, 2008 9:46 am 
Timothy WallJul 18, 2008 10:18 am 
RWAD...@UP.COMJul 18, 2008 11:07 am 
RWAD...@UP.COMJul 18, 2008 11:19 am 
Timothy WallJul 18, 2008 11:35 am 
Timothy WallJul 18, 2008 11:40 am 
Timothy WallJul 18, 2008 11:44 am 
Timothy WallJul 18, 2008 11:46 am 
RWAD...@UP.COMJul 18, 2008 12:01 pm 
RWAD...@UP.COMJul 18, 2008 12:07 pm 
RWAD...@UP.COMJul 18, 2008 12:09 pm 
RWAD...@UP.COMJul 18, 2008 12:28 pm 
Timothy WallJul 18, 2008 12:46 pm 
RWAD...@UP.COMJul 18, 2008 12:55 pm 
RWAD...@UP.COMJul 18, 2008 1:16 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Array of Structures in a StructureActions...
From:Timothy Wall (twal@dev.java.net)
Date:Jul 18, 2008 11:46:51 am
List:net.java.dev.jna.users

On Jul 18, 2008, at 2:20 PM, RWAD@UP.COM wrote:

I removed my toString() override, and now I get this output. Can you tell whether the memory is allocated properly?

Size of ObjectPointAndOrientationStructure: 296 bytes Size of opo array: 592 ObjectPointAndOrientationStructure(allocated@0x376ae8 (592 bytes) (shared from allocated@0x376ae8 (592 bytes))) { ObjectPointStructure obj_pnt@0=ObjectPointStructure(allocated@0x323c6a8 (24 bytes)) { int obj_pnt_nbr@0=0 int fac_type_sys_nbr@4=0 int fac_enty_nbr@8=0 int rail_loca_nbr@c=0 byte obj_pnt_type_code[5]@10=[B@1a897a9 } int num_rpls@18=0 OrientationStructure ornt[3]@20=[Lcom.uprr.efm.nativ.struct.OrientationStructure;@17cec96 } ObjectPointAndOrientationStructure(allocated@0x376c10 (296 bytes) (shared from allocated@0x376c10 (296 bytes) (shared from allocated@0x376ae8 (592 bytes) (shared from allocated@0x376ae8 (592 bytes))))) { ObjectPointStructure obj_pnt@0=ObjectPointStructure(allocated@0x376c10 (296 bytes) (shared from allocated@0x376c10 (296 bytes) (shared from allocated@0x376c10 (296 bytes) (shared from allocated@0x376ae8 (592 bytes) (shared from allocated@0x376ae8 (592 bytes)))))) { int obj_pnt_nbr@0=0 int fac_type_sys_nbr@4=0 int fac_enty_nbr@8=0 int rail_loca_nbr@c=0 byte obj_pnt_type_code[5]@10=[B@90832e } int num_rpls@18=0 OrientationStructure ornt[3]@20=[Lcom.uprr.efm.nativ.struct.OrientationStructure;@1947496 } # # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x03cdebf1, pid=880, tid=1100 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_04-b05 mixed mode, sharing) # Problematic frame: # C [efms-api.dll+0x2ebf1] # # An error report file with more information is saved as hs_err_pid880.log # # If you would like to submit a bug report, please visit: # http://java.sun.com/webapps/bugreport/crash.jsp # Connected to dev091 as dtns999 Entered efm111 PROPO array pointer was NOT null. Building log entry About to write log entry Wrote log entry Building log entry with PROPO data About to write PROPO data to log Wrote PROPO data to log Sizeof(Op_And_Ornt_Struct) = 296 bytes About to initialize SOP output array: 592 bytes starting at 1000E5A4.

This last address looks bogus, at least compared to the memory allocated by the structures.