Re: Java objects obtained by c++: are they garbage collected?

David Daney <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
Yuri wrote:
> I compiled several Java classes into a shared library and call it's 
> methods from C++.
> Some of these methods return Java objects.
> 
> I wonder do I have to do anything special about them in order for them 
> to get garbage collected?
> 

If you use the CNI facilities to start the runtime and do the calling, 
everything should just work (including garbage collection).

David Daney
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.