From: Joe E. <jo...@em...> - 2005-05-13 09:22:39
|
As it is now, SysexGetDialog executes a Driver's sendPatchRequest method from the actionPerformed method in its actionListener. This means that the Driver's sendPatchRequest runs in the GUI event thread. What *that* means is: sendPatchRequest takes a long time (like, with getting an entire Bank), the entire GUI of JSL freezes.... which defeats the point of having a progress-bar (which I was working on) and also defeats the purpose of having regularly-updated "XXX bytes received" counts in the dialog box. On my machine, I just experimented with having SysexGetDialog start a separate thread to call sendPatchRequest, and it worked like a charm. GUI updates happen during lengthy (as in... a 60 seconds...) patch dump requests. Does anybody have any objections to my committing this to CVS? - Joe |