My GUI kind of freezes while i'm reading from the serial device and write that data to a database. What i have done so far:
I have a Main Class which creates a Database Class and a Communication Class which is a wxThread. When the Communication Class has read some data from the serial port it fires an event which get caught in the MainClass. After some further processing the data is handled to the DatabaseClass via a normal function call. When the Database has written the data to the database it fires an event itself, notifying of new procesed Data available. This again is handled by the Main Class which now updates the GUI. This works as excepted, but user input into the GUI is ignored, say any Mouseclick is ignored. I can't select any Meny or change the selection on the Gui.
What am i doing wrong?
Kind regards,
Andre
GUI freezes while wxThread is reading serial port
Like Romas said you're going to need to post some code. From your description of the problem I'd hazard a guess that it's a lot of code in regards to posting on a forum. What you want to do is start removing stuff until you have the minimal code needed to reproduce this. Chances are in trying to find the minimal code you'll find what's causing your problem.
-Max
-Max