h***@googlemail.com
2009-10-29 11:34:56 UTC
I have incoming asynchronous events that are posted using wxPostEvent
(this, myEvent). In onMyEvent I am writing to a wxRichTextCtrl.
Occasionally the data written to wxRichTextCtrl is *interleaved* e.g.
onMyEvent writes "hello how are you?" to the wxRichTextCtrl
onMyEvent writes "yeah I'm ok" to the wxRichTextCtrl
wxRichTextCtrl shows "hello how yeah I'm ok are you?"
This suggested that the onMyEvent is called multiple times in
parallel. However, it is my understanding that there is *one* message
queue and that messages are processed *one at a time* so this should
not happen!
Does this mean there is an issue internal to wxRichTextCtrl and it
cannot be used like this?
(this, myEvent). In onMyEvent I am writing to a wxRichTextCtrl.
Occasionally the data written to wxRichTextCtrl is *interleaved* e.g.
onMyEvent writes "hello how are you?" to the wxRichTextCtrl
onMyEvent writes "yeah I'm ok" to the wxRichTextCtrl
wxRichTextCtrl shows "hello how yeah I'm ok are you?"
This suggested that the onMyEvent is called multiple times in
parallel. However, it is my understanding that there is *one* message
queue and that messages are processed *one at a time* so this should
not happen!
Does this mean there is an issue internal to wxRichTextCtrl and it
cannot be used like this?