PDA

View Full Version : Application Hangs in QTcpConnection



navi1084
24th June 2009, 06:02
Dear All,
My application communicate with a external device (ex: camera) using QTcpSocket through LAN. whenever i request for a image with proper resolution, the device fetches new image and send the raw data to my application. i send/recieve the data continuousely, i.e whenever i receive n-th image from device/camera, i will send n+1 th request. This works fine when i am requesting for small resolution image. But if i am requesting for high resolution images, then images send and recieve happens correct. but my application will hang. i.e my appliaction doesnt allow for user events. Can anyone tell how can I resolve this???

Thank you

aamer4yu
24th June 2009, 06:21
You must be reading the data in loop on ready read.
Simplest way would be to call qApp->processEvents() in between your reading loop.