Commit e4c93bcd authored by jcaceres's avatar jcaceres
Browse files

segfault identified, seems to be a problem with QT and glib

parent bb4271fd
......@@ -577,9 +577,8 @@ StreamBD::EstablishConnection (runModeT runMode, char *hostname, UDPOutput * net
while (!netin->hasPeer ())
{
usleep (10000);
// cout << ".";
//cout << ".";
}
/////FOLOW THIS TO FIND THE PROBLEM
//**************JPC COMENTED OUT*******************
cout << endl << "Connection received from: " <<
......
......@@ -62,8 +62,8 @@ UDPInput::UDPInput (NetworkInfoT netInfo, AudioInfoT audInfo):
//-------------------------------------------------------------------------------
UDPInput::~UDPInput()
{
delete sock;
delete peerAddress;
//delete sock;
//delete peerAddress;
}
......@@ -196,7 +196,20 @@ UDPInput::run ()
// otherwise it sets *timeout to FALSE. This is useful to find out
// if the peer closed the connection.
//ret = (sock->waitForMore (30, &timeout));//***JPC Port to qt4*****************
//***********************************************************
//###########################################################
// THE SEGMENTATION FAAULT BUG IS IN THE FOLLOWING LINE
// IT SEEMS THAT QT4 IS MESSING UP SOMETHING
//###########################################################
//***********************************************************
cout << "BEFORE SEGFAULT LINE" << endl;
timeout = sock->waitForReadyRead(30);//***JPC Port to qt4*****************
cout << "AFTER SEGFAULT LINE" << endl;
//***********************************************************
//##########################################################
//***********************************************************
//if (ret == -1)//***JPC Port to qt4*****************
//cerr << "udp in sock problems..." << endl;//***JPC Port to qt4*****************
//else if (timeout)//***JPC Port to qt4*****************
......@@ -249,13 +262,11 @@ UDPInput::run ()
//-------------------------------------------------------------------------------
void UDPInput::plotVal (double v)
{
/*
if(_rcvr!=NULL)
{
ThreadCommEvent *e = new ThreadCommEvent (-1.0, v, 0.0);
QApplication::postEvent (_rcvr, e); // to app event loop
}
*/
}
......
......@@ -61,7 +61,7 @@ audInfo (audInfo)
UDPOutput::~UDPOutput()
{
delete sock;
//delete sock;
}
......@@ -179,15 +179,12 @@ UDPOutput::stop ()
cout << "UDP Output SHOULD stop" << endl;
}
//***JPC Port to qt4*****************
void UDPOutput::plotVal (double v)
{
/*
if(_rcvr!=NULL)
{
ThreadCommEvent *e = new ThreadCommEvent (v, -1.0, 0.0);
QApplication::postEvent (_rcvr, e); // to app event loop
}
*/
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment