From: Grobelny, Tomasz <Tomasz.G<robelny@sa...> - 2010-02-11 17:42:08
I have a C++ application that instantiates JVM, calls method from Java
and this method wants to use objects back from the C++ application. I
the scenario on Windows on a small example (one class, one method) and
worked fine. I tried doing similar thing on Solaris with quite a big
of code and unfortunately it fails on the first call to native function
(which is in fact a getter for public field of an object). The
just crashes, no exception, no error whatsoever (I have an exception
around my Java code). I pass pointer to my C++ object as long and then
create object on the Java side with protected constructor(long, bool).
idea what may cause such a behaviour? Or at least how to get any useful
from the crashing application?