File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory Error when using Native Method

 
Raj Sharma
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is really a C question, not a java question.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic