From b5518dc90631014a4aa3dbb6c27fd5d4c9f612c9 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 10 Jun 2011 20:40:14 +0100
Subject: minor: Add some commented out destructor logging messages for
potential future use.
At the moment, client and scene objects are being garbage collected as expected, at least in simple scenarios.
---
OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 5 +++++
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs | 5 +++++
OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | 7 +++++++
3 files changed, 17 insertions(+)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index cefceb0..f53e236 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -428,6 +428,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
#endregion Properties
+// ~LLClientView()
+// {
+// m_log.DebugFormat("[LLCLIENTVIEW]: Destructor called for {0}, circuit code {1}", Name, CircuitCode);
+// }
+
///
/// Constructor
///
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 9b9374b..79660a3 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -469,6 +469,11 @@ namespace OpenSim.Region.Framework.Scenes
#endregion
+// ~SceneObjectGroup()
+// {
+// m_log.DebugFormat("[SCENE OBJECT GROUP]: Destructor called for {0}, local id {1}", Name, LocalId);
+// }
+
#region Constructors
///
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 331abb2..a215b20 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -346,6 +346,13 @@ namespace OpenSim.Region.Framework.Scenes
#endregion Fields
+// ~SceneObjectPart()
+// {
+// m_log.DebugFormat(
+// "[SCENE OBJECT PART]: Destructor called for {0}, local id {1}, parent {2} {3}",
+// Name, LocalId, ParentGroup.Name, ParentGroup.LocalId);
+// }
+
#region Constructors
///
--
cgit v1.1