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  |
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.

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.

The application sources are included. I hope in some easy and solving lesson. Thanks.
-
Attachment: First.png
(Size: 6.22KB, Downloaded 948 times)
-
Attachment: Second.png
(Size: 7.70KB, Downloaded 1187 times)
-
Attachment: PierHB.zip
(Size: 386.54KB, Downloaded 384 times)
|
|
|
|
Goto Forum:
Current Time: Mon Dec 01 10:04:22 CET 2025
Total time taken to generate the page: 0.05556 seconds
|