Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > garbage collection

Reply
Thread Tools

garbage collection

 
 
Tom Allison
Guest
Posts: n/a
 
      02-07-2006

I haven't a copy of the code yet but a friend of mine was bemoaning his
efforts to create an application in ruby (conversion from python) and
ran into a problem.

He discards a LOT of objects during the final steps of his application
run. This part of the process ultimately results in a crash every time
he runs it.

Is there something that can be recommended to help with garbage
collection?


 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      02-07-2006
Tom Allison wrote:
> I haven't a copy of the code yet but a friend of mine was bemoaning
> his efforts to create an application in ruby (conversion from python)
> and ran into a problem.
>
> He discards a LOT of objects during the final steps of his application
> run. This part of the process ultimately results in a crash every
> time he runs it.


What exactly do you mean by "discard"? Does he simply stop referencing a
big collection? Are there finalizers defined for objects?

> Is there something that can be recommended to help with garbage
> collection?


Do not switch it off.

Seriously, your description is a bit vague, so it's difficult to tell what
the cause of his problem is (might not be GC at all).

Kind regards

robert

 
Reply With Quote
 
 
 
 
Tom Allison
Guest
Posts: n/a
 
      02-07-2006

On 2/7/2006, "Robert Klemme" <> wrote:

>Tom Allison wrote:
>> I haven't a copy of the code yet but a friend of mine was bemoaning
>> his efforts to create an application in ruby (conversion from python)
>> and ran into a problem.
>>
>> He discards a LOT of objects during the final steps of his application
>> run. This part of the process ultimately results in a crash every
>> time he runs it.

>
>What exactly do you mean by "discard"? Does he simply stop referencing a
>big collection? Are there finalizers defined for objects?


I don't think he has anything like a defined finalizer.
I'll have to get the code...


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collection problems (create Collection object, add data to collection, bind collection to datagrid) Øyvind Isaksen ASP .Net 1 05-18-2007 09:24 AM
Templates - Garbage In Garbage Not Out ramiro_b@yahoo.com C++ 1 07-25-2005 04:48 PM
Garbage Collection kamran MCSD 1 04-04-2005 10:04 PM
Garbage Collection and Manage Code? Laser Lu ASP .Net 5 01-27-2004 03:48 AM
Debbugging help! (.NET 1.1 Framework Garbage Collection Problems) Cheung, Jeffrey Jing-Yen ASP .Net 3 07-10-2003 07:29 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57