This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Memory Error when using Native Method" Watch "Memory Error when using Native Method" New topic
Author

Memory Error when using Native Method

Raj Sharma
Greenhorn

Joined: Feb 06, 2001
Posts: 12
Hi,
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 :
MyFunc(1,"A");
MyFunc(2,"B");
I am getting a Memory "Read" error.
Any help on resolving the error would be of great help.
Raj
Sun Certified Java Programmer.
Cindy Glass
"The Hood"
Sheriff

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
 
 
subject: Memory Error when using Native Method