Revision: 40677
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40677&view=rev
Author:   davidloman
Date:     2010-09-24 15:24:58 +0000 (Fri, 24 Sep 2010)

Log Message:
-----------
Opps!  Was accidentially reading the msgType out of the Datastream instead of 
peeking at it.  This was causing all the NetMsg deserializers to fail as it 
wasn't getting to parse the int16 msgType correctly.

Modified Paths:
--------------
    rt^3/trunk/src/libNet/NetMsgFactory.cxx

Modified: rt^3/trunk/src/libNet/NetMsgFactory.cxx
===================================================================
--- rt^3/trunk/src/libNet/NetMsgFactory.cxx     2010-09-24 14:44:53 UTC (rev 
40676)
+++ rt^3/trunk/src/libNet/NetMsgFactory.cxx     2010-09-24 15:24:58 UTC (rev 
40677)
@@ -60,11 +60,13 @@
 NetMsg*
 NetMsgFactory::deserializeNetMsg(QByteArray& data, Portal* origin)
 {
-  QDataStream* qds = new QDataStream(data);
 
+  QDataStream temp(data);
   quint16 msgType = 0;
-  *qds >> msgType;
+  temp >> msgType;
 
+  QDataStream* qds = new QDataStream(data);
+
   //TODO Replace this with a map for registration scheme
   switch (msgType)
     {


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to