This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Memory Error when using Native Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Java in General
Bookmark "Memory Error when using Native Method" Watch "Memory Error when using Native Method" New topic

Memory Error when using Native Method

Raj Sharma

Joined: Feb 06, 2001
Posts: 12
I am calling C++ methods from Java. Everything is working fine except when I make 2 calls simultaneously.
For Example :
I have a native method in Java and it's implementation in C+ by the name MyFunc(int i, String s);
When in the main method I am calling :
I am getting a Memory "Read" error.
Any help on resolving the error would be of great help.
Sun Certified Java Programmer.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
This is really a C question, not a java question.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Memory Error when using Native Method
It's not a secret anymore!