5 messages in net.java.dev.jna.usersRe: [jna-users] VM crash Java code stuck
FromSent OnAttachments
Stas OskinAug 20, 2008 7:18 am 
Timothy WallAug 20, 2008 7:36 am 
Stas OskinAug 20, 2008 8:12 am 
Timothy WallAug 20, 2008 8:43 am 
Stas OskinAug 25, 2008 1:35 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] VM crash Java code stuckActions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 20, 2008 8:43:28 am
List:net.java.dev.jna.users

System.setProperty("jna.protected", "true")

or open the launch properties in eclipse and add "- Djna.protected=true" to the vm args.

On Aug 20, 2008, at 11:12 AM, Stas Oskin wrote:

Thanks for the tip!

Do you know by chance how it's possible to set the system property in Eclipse?

Or it should be set by some function in the code?

Thanks again.

2008/8/20, Timothy Wall <twal@dev.java.net>:

If you set the system property "jna.protected=true", you should get a thrown Error instead of a VM crash.

That's only if the crash occurs within a JNA call; if the crash is independent of JNA, you'll need to attach a debugger to the process.

On Aug 20, 2008, at 10:18 AM, Stas Oskin wrote:

Hi.

Every time my app crashes in the native code, I spent a lot of time using debug printing to find the source of the crashes.

If I'd knew the calling Java function where the crash has occurred, it would be much simpler. Any idea how it's possible to print the full Java stuck before the VM crash?