[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Mon Jul 7 19:42:45 CEST 2003


CVS commit by staikos: 

explain to the user why we are about to crash with an absolutely baffling
backtrace


  M +0 -1      kst.cpp   1.42
  M +3 -0      kstdataobject.cpp   1.11
  M +2 -0      kstplugin.cpp   1.34
  M +1 -1      kstvector.cpp   1.29
  M +0 -1      kstvector.h   1.29


--- kdeextragear-2/kst/kst/kst.cpp  #1.41:1.42
@@ -38,5 +38,4 @@
 #include <kstatusbar.h>
 
-#include <typeinfo>
 #include <iostream>
 

--- kdeextragear-2/kst/kst/kstdataobject.cpp  #1.10:1.11
@@ -22,8 +22,10 @@
 
 KstDataObject::KstDataObject() : KstObject() {
+  //kdDebug() << "+++ CREATING DATA OBJECT: " << (void*)this << endl;
 }
 
 KstDataObject::KstDataObject(QDomElement& e) : KstObject() {
 Q_UNUSED(e);
+  //kdDebug() << "+++ CREATING DATA OBJECT: " << (void*)this << endl;
 }
 
@@ -41,4 +43,5 @@ KstDataObject::~KstDataObject() {
     KST::vectorList.remove(*it);
   }
+  //kdDebug() << "+++ DESTROYING DATA OBJECT: " << (void*)this << endl;
 }
 

--- kdeextragear-2/kst/kst/kstplugin.cpp  #1.33:1.34
@@ -138,4 +138,6 @@ KstObject::UpdateType KstPlugin::update(
 
   for (unsigned i = 0; i < inArrayCnt; i++) {
+    if (!_inputVectors[i].data())
+      kdFatal() << "Vector " << i << " is invalid.  Cannot load." << endl;
     inVectors[i] = _inputVectors[i]->value();
     inArrayLens[i] = _inputVectors[i]->sampleCount();

--- kdeextragear-2/kst/kst/kstvector.cpp  #1.28:1.29
@@ -38,4 +38,5 @@ double KST::NOPOINT = 0.0/0.0; // NaN
 /** Create a vector */
 KstVector::KstVector(const QString& name, int size) : KstObject() {
+  //kdDebug() << "+++ CREATING VECTOR: " << (void*) this << endl;
   _tag = name;
   NumShifted = 0;
@@ -64,5 +65,4 @@ KstVector::KstVector(const QString& name
 
   CreateScalars();
-  //kdDebug() << "+++ CREATING VECTOR: " << (void*) this << endl;
   KST::vectorList.append(this);
 }

--- kdeextragear-2/kst/kst/kstvector.h  #1.28:1.29
@@ -50,5 +50,4 @@ public:
    */
   KstVector(const QString& name = QString::null, int size = 0);
-  KstVector(QDomElement &e);
 
   virtual ~KstVector();




More information about the Kst mailing list