Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1789
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: Thu May 09 19:23:11 CEST 2024

Total time taken to generate the page: 0.01666 seconds