- Timestamp:
- Oct 18, 2007, 11:19:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncgetthread.cpp
r514 r515 112 112 113 113 msleep(100); //sleep 0.1 sec 114 115 // Initialize Socket116 // -----------------117 QString msg;118 _socket = bncGetThread::request(_mountPoint, _latitude, _longitude,119 _nmea, _timeOut, msg);120 114 } 121 115 … … 123 117 //////////////////////////////////////////////////////////////////////////// 124 118 bncGetThread::~bncGetThread() { 125 delete _socket; 119 if (_socket) { 120 _socket->close(); 121 // delete _socket; // not allowed in Qt - created in different thread 122 } 126 123 delete _decoder; 127 124 } … … 245 242 t_irc bncGetThread::initRun() { 246 243 244 // Initialize Socket 245 // ----------------- 246 QString msg; 247 _socket = bncGetThread::request(_mountPoint, _latitude, _longitude, 248 _nmea, _timeOut, msg); 247 249 if (!_socket) { 248 250 return failure;
Note:
See TracChangeset
for help on using the changeset viewer.