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 » U++ MT-multithreading and servers » Required simple MT lesson
Required simple MT lesson [message #40818] Sat, 21 September 2013 13:01 Go to previous message
mubeta is currently offline  mubeta
Messages: 77
Registered: October 2006
Member
I'm trying to write a multithreaded program to make it quicker and easier to manage communication with peripheral BUS.
I have read on this forum that multithreading is not easy to do and in fact I have the first problems.
The application I'm writing has GUI interface, which, at startup, starts the communication thread.

index.php?t=getfile&id=4319&private=0

The communication thread uses only local variables or global variables. There is only one shared buffer, declared as global variable.
Well. The application work properly, till, from some buttons I open an windonw, for example an file selector. After this action, in short time the application crash.

index.php?t=getfile&id=4320&private=0

The application sources are included. I hope in some easy and solving lesson. Thanks.
  • Attachment: First.png
    (Size: 6.22KB, Downloaded 755 times)
  • Attachment: Second.png
    (Size: 7.70KB, Downloaded 986 times)
  • Attachment: PierHB.zip
    (Size: 386.54KB, Downloaded 276 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TcpSocket: send data from server to client
Next Topic: INTERLOCK and Mutex object
Goto Forum:
  


Current Time: Sat Apr 27 10:11:52 CEST 2024

Total time taken to generate the page: 0.05207 seconds