U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl Write To Freed Memory Detected
Re: ArrayCtrl Write To Freed Memory Detected [message #34828 is a reply to message #34824] Tue, 13 December 2011 22:06 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1796
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Kevin,

I believe that the piece you're missing is GuiLock. The access to GUI must be serialized, when using multiple threads. See the GuiLock reference example. Second possible solution is to use only one thread to access GUI and send all the actions from threads through a queue. This is illustrated in GuiMT reference example. The GuiLock method is simpler and preferred.

Best regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Other problem with Clipboard in GridCtrl
Next Topic: ArrayCtrl: Edit doesn't like Option
Goto Forum:
  


Current Time: Tue Jun 16 09:46:20 GMT+2 2026

Total time taken to generate the page: 0.00507 seconds