The problem is that no message processing occurs in inkscape whatsoever. As you say, the user input processing is not really any big deal, but there are some messages like paint messages which must be processed. Before adding the second thread, as you dragged the file dialog around over the docucument window, a trail of unpaintedness was left behind - very ugly!
----- Original Message ----- From: "bulia byak" <buliabyak@...400...> To: "Joel Holdsworth" <joel@...1709...> Cc: "Inkscape List Devel" inkscape-devel@lists.sourceforge.net Sent: Thursday, September 27, 2007 12:03 AM Subject: Re: [Inkscape-devel] Rasterising an SVG in a worker thread
On 9/26/07, Joel Holdsworth <joel@...1709...> wrote:
I'm just continuing to work on the native win32 file dialogs. Things are coming along, slowly, but I've stumbled into yet another problem. In order to render a preview of the selected file I need to be able to rasterise an SVG file. Because of the way the windows file dialog works, it has to be executed from a worker thread - not from the main UI thread, otherwise the rest of inkscape locks up in the background.
So what is the problem with locking Inkscape while a file dialog is open? AFAIK these dialogs are modal anyway.
-- bulia byak Inkscape. Draw Freely. http://www.inkscape.org