------art_121252_13882475.1218725224777
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

On Thu, Aug 14, 2008 at 8:38 AM, Mateusz Tybura <wujciol / gmail.com> wrote:

> Glen Holcomb wrote:
> > Is there an easy/clean way to start a new process in Windows that will
> > execute just a section of code?  I've tried win32-process but it spawns
> > a
> > new version of the entire script which doesn't help in my situation.
> >
> > --
> > "Hey brother Christian with your high and mighty errand, Your actions
> > speak
> > so loud, I can't hear a word you're saying."
> >
> > -Greg Graffin (Bad Religion)
>
> Try to use ruby threads. Example
>
> thread  hread.new do
> Thread.stop #thread will not execute since you run it yourself
> p "Hi I'm thread"
> end
>
> p "Before thread"
> thread.run
> p "After thread"
> --
> Posted via http://www.ruby-forum.com/.
>
>
Thanks, but I actually have the code in a thread already.  I'm having an
issue where it appears that some combination of wx-ruby, win32ole, and the
garbage collector are causing my app to hang.  I was hoping to execute the
win32ole code in a separate process in hopes of avoiding the hanging
problem.



-- 
"Hey brother Christian with your high and mighty errand, Your actions speak
so loud, I can't hear a word you're saying."

-Greg Graffin (Bad Religion)

------art_121252_13882475.1218725224777--