From: "Eustaquio Rangel de Oliveira Jr." Date: 2005-05-17T04:24:01+09:00 Subject: Re: Doubt about GC -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. | You script returns the expected result for me (only car 1). WinXP, Ruby 1.8.2. Weird! Here I'm running Slackware 10.1-current, Ruby 1.8.2. | I'm guessing garbage collection is happening asynchronously, and that | your listCars executed before car 4 was collected? Try sleep(2) in | between GC.start and listCars to see if that changes the result. No change, even if I sleep more than 2 seconds, but if I make GC.start sleep(1) GC.start it works, only rest Car 1. | This is only a guess, and could be very wrong. I have not looked at | the Ruby source to verify how garbage collection works. But it's a beggining and prove me that I'm not at least fully crazy ehehe. There is something there. Thanks! - ---------------------------- Eust�quio "TaQ" Rangel eustaquiorangel@yahoo.com http://beam.to/taq Usu�rio GNU/Linux no. 224050 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFCiPM4b6UiZnhJiLsRAiQ4AJwPMxk7sMOzjdpZYb7GplFiPLTUiACfRkP6 I0xFnyqaZjyYoEUBm0NRxUw= =jHMR -----END PGP SIGNATURE-----