The Artima Developer Community
Sponsored Link

Java Answers Forum
Java/C++ point to same datastructure

1 reply on 1 page. Most recent reply: Aug 9, 2004 12:19 AM by Vaibhav

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
al

Posts: 11
Nickname: allelopath
Registered: Jun, 2003

Java/C++ point to same datastructure Posted: Aug 8, 2004 9:54 AM
Reply to this message Reply
Advertisement
I have Java code which has an very large 2 dimennsional array. There some C++ code which needs to do some number crunching on it. It would be much faster pass a pointer to the array from Java to C++ rather than the entire array. Is this possible? (via the JNI)


Vaibhav

Posts: 4
Nickname: vaibhz
Registered: Aug, 2004

Re: Java/C++ point to same datastructure Posted: Aug 9, 2004 12:19 AM
Reply to this message Reply
Theoritically, it should be possible... as what you are speaking is of a OO syatem and in OO system objects coordinate and cooperate with each other no matter what it is....

May be this link will give you some indepth know hows

http://forum.java.sun.com/thread.jsp?forum=52&thread=95196&tstart=30&trange=15

Flat View: This topic has 1 reply on 1 page
Topic: Passing objects to servlet Previous Topic   Next Topic Topic: Java Applet and IIS

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use