Forum Post: RE: Using toString() on Progress Dates

  • Thread starter Thread starter Lieven De Foor
  • Start date Start date
Status
Not open for further replies.
L

Lieven De Foor

Guest
Although this discussion is going a bit off topic to the original post, I too have to disagree with Thomas. Knowing the limitations of the GC (circular references and event subscription), you should favor setting one of the references to ? (and have the GC see the only left reference that can go out of scope), or unsubscribing from events (which is equally necessary in C# as that is a strong reference there too). In fact we've even seen bugs when explicitly deleting objects (DELETE OBJECT), where the Progress side of things were gone, but the .net side leaked... (.NET doesn't have an explicit delete, you can only call the GC to run, but then again, when references remain they will prevent deletion).

Continue reading...
 
Status
Not open for further replies.
Back
Top