[jruby-user] Out of memory problem with JRuby-Complete

Cees Zeelenberg <[email protected]>
Newsgroups gmane.comp.lang.jruby.user
Message-ID <[email protected]>
Hi,
I am working on a windows desktop application where I use JRuby for
developing the application and JRuby-Complete to package the application
in a jar. The application uses a fair number of external libraries -
including Qt for the user interface - but so far I have had no trouble
in running the packaged version once the JRuby version worked.
Recently I added functionality to the application to interoperate with
Microsoft Word using WIN32OLE. This works very nicely under JRuby using
the jruby-win32ole-0.8.5 gem, but when I run the same program using
JRuby-Complete, I consistently get the errormessage :

   "Can't QI object for IDispatch"

 Inspecting the error condition that leads to this message, it appears
that the interfacing software in the gem runs out of memory ( Windows
error: 0x8007000E ; E_OUTOFMEMORY).
I don't know if there is a difference in memory allocation policy
between the two JRuby implementations. I have experimented with
explicitly setting heap and stacksizes for JRuby-Complete e.g.

java -Xms256m -Xmx500m -Xss1024k -cp
lib\java\jruby-complete-1.7.13.jar;(other jars) org.jruby.Main
src\jruby_bootstrap.rb

But that made no difference to the error.

Any suggestions how I may solve this problem are very welcome

Cees Zeelenberg

-- 
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
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.