L
Luk Vloemans
Hey Everyone,
I'm writing software to communicate with a GPS to a PDA.
So far, I've been quite lucky. All the data from the GPS is succefully
being read into my interface, and succesfully parsed.
However, I recently added an extra "settings"-tab to my program to spice
up usability.
The following problem occurs.
When I start the GPS and start playing with the tabs (going back and
foward between the "Main"-tab and the "Settings"-tab) my program hangs
itself up. (it might happen the first time, or after 10 times)
I've got no explenation for this..
I've got one thread updating all the textbox-fields in my "Main"-tab and
one thread reading all data from the PDA's COM-port (GPS). (plus the
main thread)
Should I stop updating the textbox-fields in my "Main"-tab when I check
out my "Settings"-tab ? (I found another tool made for a GPS on a PDA
and that tool didn't stop updating.. so I don't think I should stop
either..)
Anyone got a clue why this deadlock occurs?
PS: If I don't touch the tabs, the program works perfectly.
Thx for any help!
|Luk Vloemans
|IT student
I'm writing software to communicate with a GPS to a PDA.
So far, I've been quite lucky. All the data from the GPS is succefully
being read into my interface, and succesfully parsed.
However, I recently added an extra "settings"-tab to my program to spice
up usability.
The following problem occurs.
When I start the GPS and start playing with the tabs (going back and
foward between the "Main"-tab and the "Settings"-tab) my program hangs
itself up. (it might happen the first time, or after 10 times)
I've got no explenation for this..
I've got one thread updating all the textbox-fields in my "Main"-tab and
one thread reading all data from the PDA's COM-port (GPS). (plus the
main thread)
Should I stop updating the textbox-fields in my "Main"-tab when I check
out my "Settings"-tab ? (I found another tool made for a GPS on a PDA
and that tool didn't stop updating.. so I don't think I should stop
either..)
Anyone got a clue why this deadlock occurs?
PS: If I don't touch the tabs, the program works perfectly.
Thx for any help!
|Luk Vloemans
|IT student