wxWidgets - Yield()

Started by
0 comments, last by outRider 15 years, 8 months ago
Hey all, I'm writing a program where it gets data from a board through usb. What's happening is that when there are no data in the buffer on the board, my gui halts until there is data available. I've done some research and seems I need to use Yield to make the gui responsive during the data waiting halt. But I can't seem to get Yield() to work and it's hard to find examples on how that is done. Can anyone help me with this problem?? Mahalo, Aiea
Mahalo,AieaLove them semicolons and equal signs...
Advertisement
Are you polling the USB port? wxYield() will help you in that case, but if you're stuck in a blocking read call you need to use a thread so your GUI event loop can still run.

This topic is closed to new replies.

Advertisement