1+2. Data = new char(0); is this good?what is the optimal size ,if there is such a thing, in defining the buffer? is leaving it zero is ok?
BytesRead = socket->read(Data,5);
qDebug() << " Data in: " << Data;
qDebug() << "how much Data in: " << BytesRead;
BytesWritten = process1->write(Data,BytesRead);
qDebug() << "how much Data OUT: " << BytesRead;
now the video doesn't appear and when i try to read(and write) more than around 20 bytes the program collapses.
thanks.
Bookmarks