

![]() | 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: |
2 messages in net.java.dev.jna.users[jna-users] VM core dump help| From | Sent On | Attachments |
|---|---|---|
| abhi...@jpmchase.com | Sep 2, 2008 9:58 pm | |
| abhi...@jpmchase.com | Sep 3, 2008 5:24 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: | [jna-users] VM core dump help | Actions... |
|---|---|---|
| From: | abhi...@jpmchase.com (abhi...@jpmchase.com) | |
| Date: | Sep 2, 2008 9:58:16 pm | |
| List: | net.java.dev.jna.users | |
Hello,
I am trying to use jna to connect to a native shared library. The test "C" funtiion, Im connecting has a signature as below:
extern "C" double getFwdSwapRate ( int i_tradeDate, int numTenors, char **i_tenors, double *i_tenorRates, int i_expiryDate, const char *i_underlyingTenor ) { result = 4.0 + 1.0; return result ; }
The java signature to connect to the above "C" code is as below:
CSwapLib lib = (CSwapLib) Native.loadLibrary("SwapLib", CSwapLib.class);
double getFwdSwapRate( int tradeDate, int tenorCount, String[] tenors, double[] tenorRates, int i_exiryDate, String underlyingTenor ); Im using java 1.5. When Im continuously connecting to the native code (in a loop), the VM gives a core dump after couple of tries. But when I run the VM with the flag " -Xint", the VM does not core dump. Any suggestions, help on this would be appreciated.
Thanks Abhi VM
----------------------------------------- This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates.
This transmission may contain information that is privileged, confidential, legally privileged, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and affiliates, as applicable, for any loss or damage arising in any way from its use. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to UK legal entities.







