Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide [message #40223 is a reply to message #40218] |
Sat, 06 July 2013 17:39 |
|
bushman
Messages: 134 Registered: February 2009
|
Experienced Member |
|
|
Tks for the prompt response.
Quote: | The root of problem is stupid M$ decision that binds windows and event loops to threads. That makes practically only possible to create windows and run event loops in the main thread.
|
I thought it was something rather OS-independent, since the issue apparently occurs under Linux too, according to Alendar's posting in this topic. Anyway, I wonder, would it be worth to ask how M$ does it? In other words, how a pure M$ app is supposed to be developed so that it does what I want without crashing? I mean, is there some M$ recipe for creating new windows not in main thread and still be able to run event loops in it without crashing? I don't know, maybe such an investigation could bring up new insights on which course to take to fix the problem, for I guess purely M$-based progs must end up having to do it one way or another.
Quote: | Alternatively, I am starting to thing that perhaps easiest is to ban creation of windows in non-main thread (Prompts could perhaps be supported as exception, DisplayPopup::Sync would have to be rewritten).
|
If you decide to do so, does it mean we will no longer be able do stuff like adding Ctrls in a background thread dynamically, while 'simultaneously' enabling user interaction with GUI, or would new DisplayPopup::Sync code otherwise still make it possible?
tks.
|
|
|
|
|
ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: alendar on Tue, 07 September 2010 05:07
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: alendar on Tue, 12 October 2010 03:33
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: koldo on Wed, 13 October 2010 08:57
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: mirek on Sat, 16 October 2010 12:54
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: bushman on Fri, 05 July 2013 04:05
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: mirek on Fri, 05 July 2013 19:54
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: mirek on Sat, 06 July 2013 11:37
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: bushman on Sat, 06 July 2013 17:39
|
|
|
Re: ArrayCtrl: GPF when thread Add(), PopUpEx, and Scroll collide
By: mirek on Sat, 06 July 2013 20:54
|
Goto Forum:
Current Time: Sun May 05 05:08:38 CEST 2024
Total time taken to generate the page: 0.03230 seconds
|