I have some C++ code (it's actually all global functions right now) which is called from
Java like:
myObj.callNativeMethod1( someObj );
myObj.callNativeMethodThatWorksWithSomeObj( );
How can I make sure that "someObj" which was passed into the first method is still valid/usable in method 2?
EDIT: The C++ app is multithreaded. So it also needs access to that object in other threads as well as across calls.
[ October 18, 2006: Message edited by: Dan Bizman ]