From: Ralph Shnelvar Date: 2010-09-28T05:55:08+09:00 Subject: Re: interpreter cannot enter in the context from another thread. ------------301385C4FF434 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Luis, Monday, September 27, 2010, 2:45:09 PM, you wrote: LL> On Sep 27, 5:30 pm, Ralph Shnelvar wrote: >> [Note: parts of this message were removed to make it a legal post.] >> This is a continuation of the thread: >> Re: Segmentation Fault; more info? >> Luis Lavena said: >> "Please note that Ruby 1.8.x is not multithread and that the >> interpreter cannot enter in the context from another thread." >> Could use please explain this further? >> Unless I am missing something, 1.8.7 implements green threads ... at least according to Dave Thomas (pg. 171 in *Programming Ruby 1.9*) LL> Yes, but you're using FXRuby which is a C component. LL> Since you haven't provided a sample code that shows the segmentation LL> fault. I must tackle all the possible issues, including the spawn of LL> threads by FXRuby and using Ruby-based callbacks. LL> So, Ruby green threads are OK, as long you don't mix them with real LL> threads. In your post you mention "4 different threads" LL> We are just guessing all due your lack of code. LL> -- LL> Luis Lavena Could you please explain what you mean by "interpreter cannot enter in the context from another thread." Ralph ------------301385C4FF434--