Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj	(revision 2130)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/Plugin_VisibilitySceneManager.vcproj	(revision 2168)
@@ -112,5 +112,5 @@
 				AdditionalLibraryDirectories="&quot;$(OGRE_PATH)\PlugIns\OctreeSceneManager\bin\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\OgreMain\lib\$(ConfigurationName)&quot;;&quot;$(OGRE_PATH)\Samples\Common\CEGUIRenderer\lib&quot;;&quot;$(OGRE_PATH)\Dependencies\lib\$(ConfigurationName)&quot;;&quot;..\..\..\Preprocessing\lib\$(ConfigurationName)&quot;;..\..\..\..\..\..\..\NonGTP\Xerces\xercesc\lib;..\..\..\Preprocessing\src\GL;..\..\..\..\..\..\..\NonGTP\Zlib\lib;&quot;..\..\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\IVReader\lib\$(ConfigurationName)&quot;;&quot;..\..\..\..\..\Lib\Vis\OnlineCullingCHC\ObjReader\lib\$(ConfigurationName)&quot;"
 				ModuleDefinitionFile="..\misc\OgreVisibilitySceneManager.def"
-				GenerateDebugInformation="FALSE"
+				GenerateDebugInformation="TRUE"
 				SubSystem="2"
 				OptimizeReferences="2"
Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp	(revision 2164)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionCullingSceneManager.cpp	(revision 2168)
@@ -1040,32 +1040,31 @@
 	if (key == "VisibilityManager")
 	{
-		* static_cast<GtpVisibility::VisibilityManager **>(val) = 
-			(GtpVisibility::VisibilityManager *)mVisibilityManager;
-		return true;
-	}
-	if (key == "HierarchInterface")
-	{
-		* static_cast<GtpVisibility::HierarchyInterface **>(val) = 
-			(GtpVisibility::HierarchyInterface *)mHierarchyInterface;
+		//Ogre::LogManager::getSingleton().logMessage("here77");
+		* static_cast<GtpVisibility::VisibilityManager **>(val) = mVisibilityManager;
+		return true;
+	}
+	if (key == "HierarchyInterface")
+	{
+		* static_cast<GtpVisibility::HierarchyInterface **>(val) = mHierarchyInterface;
 		return true;
 	}
 	if (key == "ShowTerrain")
 	{
-		* static_cast<bool *>(val) = (bool *)mShowTerrain;
+		* static_cast<bool *>(val) = mShowTerrain;
 		return true;
 	}
 	if (key == "UseDepthPass")
 	{
-		* static_cast<bool *>(val) = (bool *)mUseDepthPass;
+		* static_cast<bool *>(val) = mUseDepthPass;
 		return true;
 	}
 	if (key == "FlushQueue")
 	{
-		* static_cast<bool *>(val) = (bool *)mDeleteQueueAfterRendering;
+		* static_cast<bool *>(val) = mDeleteQueueAfterRendering;
 		return true;
 	}
 	if (key == "NormalExecution")
 	{
-		* static_cast<bool *>(val) = (bool *)mNormalExecution;
+		* static_cast<bool *>(val) = mNormalExecution;
 		return true;
 	}
Index: GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionQueriesQueryManager.cpp
===================================================================
--- GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionQueriesQueryManager.cpp	(revision 2066)
+++ GTP/trunk/Lib/Vis/OnlineCullingCHC/OGRE/src/OgreOcclusionQueriesQueryManager.cpp	(revision 2168)
@@ -32,5 +32,5 @@
 	// disable overlays, reset them later
 	bool overlayEnabled = mViewport->getOverlaysEnabled();
-
+Ogre::LogManager::getSingleton().logMessage("here020202");
 	///////////
 	//-- render scene with item buffer (i.e., objects with their id as color codes)
@@ -209,5 +209,5 @@
 				   GtpVisibility::PatchInfoContainer *visiblePatches,
 			       bool relativeVisibility)
-{
+{Ogre::LogManager::getSingleton().logMessage("here5");
 	PlatformQueryManager::ComputeFromPointVisibility(point, visibleNodes, 
 		visibleGeometry, visiblePatches, relativeVisibility);
@@ -216,10 +216,10 @@
 	// (duplicates occur if an object is on the edge of the viewport)
 	RemoveDuplicateNodes(visibleNodes);
-	
+	Ogre::LogManager::getSingleton().logMessage("here6");
 	if (mItemBufferMode != GEOMETRY_VISIBILITY)
 	{
 		RemoveDuplicateGeometry(visibleGeometry);
 	}
-	
+	Ogre::LogManager::getSingleton().logMessage("here7");
 	if (mItemBufferMode != PATCH_VISIBILITY)
 	{
