Index: osgVisual/src/core/visual_core.cpp
===================================================================
--- osgVisual/src/core/visual_core.cpp	(revision 68)
+++ osgVisual/src/core/visual_core.cpp	(revision 69)
@@ -362,76 +362,79 @@
 	//test->init( rootNode, viewer );
 
-	// Creating Testclasses
-	osg::ref_ptr<osgVisual::dataIO_transportContainer> test = new osgVisual::dataIO_transportContainer();
-	osg::ref_ptr<osgVisual::dataIO_executer> testEx = new osgVisual::dataIO_executer();
-	osg::ref_ptr<osgVisual::dataIO_slot> testSlot = new osgVisual::dataIO_slot();
-	test->setFrameID( 22 );
-	test->setName("ugamoep");
-	testEx->setexecuterID( osgVisual::dataIO_executer::IS_COLLISION );
-	testSlot->setVariableName(std::string("HalloName"));
-	testSlot->setdataDirection( osgVisual::dataIO_slot::TO_OBJ );
-	testSlot->setvarType( osgVisual::dataIO_slot::DOUBLE );
-	testSlot->setValue( 0.12345 );
-	test->addExecuter( testEx );
-	test->addSlot( testSlot );
-
-	// Writing object to stream
-	//std::ofstream myOstream("test.txt" );
-	std::stringstream myOstream;
-	std::string extension = "osgb";
-	bool compressed = false;
-	osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension(extension.c_str());
-	if ( rw )
-	{
-		osgDB::ReaderWriter::WriteResult wr;
-
-		if (extension == "osgb")
-		{
-			if (compressed)
-				wr = rw->writeObject( *test, myOstream, new osgDB::Options("Compressor=zlib") );
-			else
-				wr = rw->writeObject( *test, myOstream );
-		}
-
-		if (extension == "osgt")
-		{
-			if (compressed)
-				wr = rw->writeObject( *test, myOstream, new osgDB::Options("Ascii Compressor=zlib") );
-			else
-				wr = rw->writeObject( *test, myOstream, new osgDB::Options("Ascii") );
-		}
-
-		if (extension == "osgx")
-		{
-			if (compressed)
-				wr = rw->writeObject( *test, myOstream, new osgDB::Options("XML Compressor=zlib") );
-			else
-				wr = rw->writeObject( *test, myOstream, new osgDB::Options("XML") );
-		}
-
-
-		if (!wr.success() )	OSG_NOTIFY( osg::WARN ) << "ERROR: Save failed: " << wr.message() << std::endl;
-	}
-	else
-		OSG_NOTIFY( osg::WARN ) << "error getting readerWriter for osgt" << std::endl;
-
-	// Size ermitteln.
-	std::stringbuf *pbuf;
-	pbuf = myOstream.rdbuf();
-	OSG_NOTIFY( osg::WARN ) << "PBUF Bytes available: " << pbuf->in_avail() << std::endl;
-	OSG_NOTIFY( osg::ALWAYS ) << "STRING Bytes available: " << myOstream.str().length() << std::endl;
-	OSG_NOTIFY( osg::ALWAYS ) << "STRING content: " << myOstream.str() << std::endl;
-
-	//Reading Stream to node
-	if ( rw )
-	{
-		osgDB::ReaderWriter::ReadResult rr = rw->readObject( myOstream );
-		osg::ref_ptr<osgVisual::dataIO_transportContainer> test2 = dynamic_cast<osgVisual::dataIO_transportContainer*>(rr.takeObject());
-		if (test2)
-		{
-			OSG_NOTIFY( osg::WARN ) << "TEST::FrameID is: " << test->getFrameID() << std::endl;
-		}
-		else
-			OSG_NOTIFY( osg::WARN ) << "Error converting stream to Node" << std::endl;
-	}
-}
+	//// Creating Testclasses
+	//osg::ref_ptr<osgVisual::dataIO_transportContainer> test = new osgVisual::dataIO_transportContainer();
+	//osg::ref_ptr<osgVisual::dataIO_executer> testEx = new osgVisual::dataIO_executer();
+	//osg::ref_ptr<osgVisual::dataIO_slot> testSlot = new osgVisual::dataIO_slot();
+	//test->setFrameID( 22 );
+	//test->setName("ugamoep");
+	//testEx->setexecuterID( osgVisual::dataIO_executer::IS_COLLISION );
+	//testSlot->setVariableName(std::string("HalloName"));
+	//testSlot->setdataDirection( osgVisual::dataIO_slot::TO_OBJ );
+	//testSlot->setvarType( osgVisual::dataIO_slot::DOUBLE );
+	//testSlot->setValue( 0.12345 );
+	//test->addExecuter( testEx );
+	//test->addSlot( testSlot );
+
+	visual_dataIO::getInstance()->setSlotData("TestSlot1", osgVisual::dataIO_slot::TO_OBJ, 0.12345);
+
+
+	//// Writing object to stream
+	////std::ofstream myOstream("test.txt" );
+	//std::stringstream myOstream;
+	//std::string extension = "osgb";
+	//bool compressed = false;
+	//osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension(extension.c_str());
+	//if ( rw )
+	//{
+	//	osgDB::ReaderWriter::WriteResult wr;
+
+	//	if (extension == "osgb")
+	//	{
+	//		if (compressed)
+	//			wr = rw->writeObject( *test, myOstream, new osgDB::Options("Compressor=zlib") );
+	//		else
+	//			wr = rw->writeObject( *test, myOstream );
+	//	}
+
+	//	if (extension == "osgt")
+	//	{
+	//		if (compressed)
+	//			wr = rw->writeObject( *test, myOstream, new osgDB::Options("Ascii Compressor=zlib") );
+	//		else
+	//			wr = rw->writeObject( *test, myOstream, new osgDB::Options("Ascii") );
+	//	}
+
+	//	if (extension == "osgx")
+	//	{
+	//		if (compressed)
+	//			wr = rw->writeObject( *test, myOstream, new osgDB::Options("XML Compressor=zlib") );
+	//		else
+	//			wr = rw->writeObject( *test, myOstream, new osgDB::Options("XML") );
+	//	}
+
+
+	//	if (!wr.success() )	OSG_NOTIFY( osg::WARN ) << "ERROR: Save failed: " << wr.message() << std::endl;
+	//}
+	//else
+	//	OSG_NOTIFY( osg::WARN ) << "error getting readerWriter for osgt" << std::endl;
+
+	//// Size ermitteln.
+	//std::stringbuf *pbuf;
+	//pbuf = myOstream.rdbuf();
+	//OSG_NOTIFY( osg::WARN ) << "PBUF Bytes available: " << pbuf->in_avail() << std::endl;
+	//OSG_NOTIFY( osg::ALWAYS ) << "STRING Bytes available: " << myOstream.str().length() << std::endl;
+	//OSG_NOTIFY( osg::ALWAYS ) << "STRING content: " << myOstream.str() << std::endl;
+
+	////Reading Stream to node
+	//if ( rw )
+	//{
+	//	osgDB::ReaderWriter::ReadResult rr = rw->readObject( myOstream );
+	//	osg::ref_ptr<osgVisual::dataIO_transportContainer> test2 = dynamic_cast<osgVisual::dataIO_transportContainer*>(rr.takeObject());
+	//	if (test2)
+	//	{
+	//		OSG_NOTIFY( osg::WARN ) << "TEST::FrameID is: " << test->getFrameID() << std::endl;
+	//	}
+	//	else
+	//		OSG_NOTIFY( osg::WARN ) << "Error converting stream to Node" << std::endl;
+	//}
+}
