Its just odd that I can write to it using QFile but not read.

the packet im receiving is 131 bytes long. (in this case, its not a constant depending on the signal Ive tuned, just in this case I know its 131 bytes long)

Qt Code:
  1. int BUFFY = 10*188*1024;
  2. char buf[BUFFY];
  3. memset(buf, 0, BUFFY);
  4. int len = read(dmx_fd->handle(), buf, BUFFY);
  5. cout << "Length read: " << len << endl;
To copy to clipboard, switch view to plain text mode 

outputs

Qt Code:
  1. Length read: 131
To copy to clipboard, switch view to plain text mode 

Qt Code:
  1. int BUFFY = 10*188*1024;
  2. buffer.clear();
  3. buffer = dmx_fd->read(BUFFY);
  4. cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode 
application locks up on the read()

Qt Code:
  1. buffer.clear();
  2. buffer = dmx_fd->read(131);
  3. cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode 
application locks up on the read()

Qt Code:
  1. buffer.clear();
  2. buffer = dmx_fd->read(1);
  3. cout << "Length read: " << buffer.size() << endl;
To copy to clipboard, switch view to plain text mode 
application locks up on the read()

I just cant read anything from it. readAll() does the same. How can I write to it but not read from it ? lol just seems so odd that it wont work.

UDL