• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Memory Error when using Native Method

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is really a C question, not a java question.
reply
    Bookmark Topic Watch Topic
  • New Topic