Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » bug in ImageBuffer::Line() and operator[]
Re: bug in ImageBuffer::Line() and operator[] [message #15425 is a reply to message #15424] |
Wed, 23 April 2008 10:34   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
void Layer::MakeLayerAsThread(Layer* pLayer,double op,void* pMain,int n)
{
ImageMT* ptr = (ImageMT*)pMain;
Layer* pNewLayer = new Layer(pLayer,op,pMain);
ptr->AddLayer(pNewLayer);
ptr->Refresh(); //<< !!! You can only do GUI in the main thread!!!
AtomicDec(ptr->threads); // the last thing this thread does is clean up
}
Calls to anything defined in CtrlCore and beyond is only allowed in the main thread, with the exception of event queue calls.
Means that instead of calling Refresh directly, you must use event queue to pass this into the main thread. Best use
void KillSetTimeCallback(int delay_ms, Callback cb, int id);
variant (to remove any other identical Refresh from the queue).
Mirek
|
|
|
 |
|
bug in ImageBuffer::Line() and operator[]
By: mdelfede on Sun, 09 March 2008 21:21
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Sun, 09 March 2008 22:28
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mdelfede on Sun, 09 March 2008 22:46
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Mon, 10 March 2008 09:36
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mdelfede on Mon, 10 March 2008 11:19
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Wed, 12 March 2008 14:45
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Wed, 16 April 2008 13:29
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Thu, 17 April 2008 21:44
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Wed, 23 April 2008 10:25
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Wed, 23 April 2008 10:34
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
|
 |
|
Re: bug in ImageBuffer::Line() and operator[]
By: mirek on Wed, 23 April 2008 21:04
|
Goto Forum:
Current Time: Thu Sep 04 02:47:03 CEST 2025
Total time taken to generate the page: 0.03799 seconds
|