[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

5 threads didn't exit

Junkone

12/9/2007 1:58:00 AM

Hello
I get this mesg whenever an i interrupt a Ruby program. How do i
determine what these threads are e:/ruby/lib/ruby/1.8/date/format.rb:
959:in `_parse': Interrupt
from e:/ruby/lib/ruby/1.8/time.rb:240:in `parse'
from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
236:in `pr
intPictures'
from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
235:in `ea
ch'
from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
235:in `pr
intPictures'
from E:/TradingTools/torontotrader/app/models/picture.rb:24:in
`importPi
cture'
from importtrade.rb:228:in `unitTestPrinting'
from importtrade.rb:248
Error in my_thread_global_end(): 5 threads didn't exit
1 Answer

Robert Klemme

12/9/2007 11:14:00 AM

0

On 09.12.2007 02:58, Junkone wrote:
> Hello
> I get this mesg whenever an i interrupt a Ruby program. How do i
> determine what these threads are e:/ruby/lib/ruby/1.8/date/format.rb:
> 959:in `_parse': Interrupt
> from e:/ruby/lib/ruby/1.8/time.rb:240:in `parse'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 236:in `pr
> intPictures'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 235:in `ea
> ch'
> from E:\TradingTools\torontotrader\app\helpers\printTrades.rb:
> 235:in `pr
> intPictures'
> from E:/TradingTools/torontotrader/app/models/picture.rb:24:in
> `importPi
> cture'
> from importtrade.rb:228:in `unitTestPrinting'
> from importtrade.rb:248
> Error in my_thread_global_end(): 5 threads didn't exit

If your program is to handle interrupts gracefully, I'd set up a signal
handler for SIGINT and use that for proper shutdown or whatever you want
to do.

Kind regards

robert