Re: Application Error (JVM crashes and hangs)

Morten Andersen <[email protected]>
Newsgroups gmane.comp.windows.devel.jawin
Message-ID <[email protected]>
Hi Mirek

Miroslav Tichy wrote:

[SNIP]

Perhaps you can try to insert the line below (I have inserted it in the
correct place in your sample code)

> Ole32.CoInitialize();
> //generated stub for COM object writen in MS Fox and accessing Clipper DBF
> file through the ODBC
> Inetwrs net = new Inetwrs(netwrs.CLSID);
> //here I call method which writes something to the DB and it really does
> it...!!!!!!
> Object o = net.zapis();

net.close();

> Ole32.CoUninitialize();

Also, what kind of object does net.zapis() return? - if this is a also
an instance of COMPtr, DispatchPtr or the like, this should probably
also be closed before the CoUninitialize() call.

I think the documentation may only contain very little information on
the usage of close(). But a few lines on it can be found here:
        http://jawinproject.sourceforge.net/jawinuserguide_vtable.html#jawinapi

and in the sample code here:
        http://jawinproject.sourceforge.net/jawinuserguide_vtable.html#samplecode_using

Please let us know if this solves your problem.
Best Regards
Morten
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.