5 messages in net.java.dev.jna.users[jna-users] garbage collector interferes
FromSent OnAttachments
ArgynSep 10, 2008 1:04 pm 
Timothy WallSep 10, 2008 1:15 pm 
ArgynSep 10, 2008 2:46 pm 
Timothy WallSep 10, 2008 5:56 pm 
ArgynSep 10, 2008 7:05 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:[jna-users] garbage collector interferesActions...
From:Argyn (jawa@gmail.com)
Date:Sep 10, 2008 1:04:18 pm
List:net.java.dev.jna.users

i have this issue with JNA when after some number of calls, the system crashes with EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0327d1dc, pid=1956, tid=728

i was playing with my code, and essentially came to one loop with simply one JNA native call in it. it's windows XP to C dll. after some number of calls , could be 300 or 10000, it blows up. i prepare all the memory and structures outside the loop.

now i put System.gc() inside the loop, and BOOM! it blows up after the first call. what do i need to know about JNA and garbage collector? apparently it cleans up something that it being referenced by DLL. how do u find these things?