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 » two threads make error
two threads make error [message #17713] Wed, 27 August 2008 12:50 Go to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

hello all

i have a function that download a file and update GUI

i made 2 threads

the first to call this function and the second to wait for the first thread and after finishing the first thread it calls the function again to download another file

but after downloading first file this error appears

http://img205.imageshack.us/img205/8194/errorvh6.jpg

please help me as this problem annoys me very much
Re: two threads make error [message #17714 is a reply to message #17713] Wed, 27 August 2008 13:07 Go to previous messageGo to next message
cocob is currently offline  cocob
Messages: 156
Registered: January 2008
Experienced Member
Which thread modify the GUI, the main thread ?
Re: two threads make error [message #17715 is a reply to message #17714] Wed, 27 August 2008 13:11 Go to previous messageGo to next message
TeCNoYoTTa is currently offline  TeCNoYoTTa
Messages: 138
Registered: July 2008
Location: Egypt
Experienced Member

i don't understand what is the main thread but GUI updating is in a gate in httpclient executerredirect method

thanks for repleing
Re: two threads make error [message #17730 is a reply to message #17715] Wed, 27 August 2008 16:21 Go to previous message
mirek is currently offline  mirek
Messages: 11991
Registered: November 2005
Ultimate Member
TeCNoYoTTa wrote on Wed, 27 August 2008 07:11

i don't understand what is the main thread but GUI updating is in a gate in httpclient executerredirect method

thanks for repleing


You cannot (at least with current U++).

You have to use PostCallback to communicate with the main thread.

Mirek
Previous Topic: CoWork question
Next Topic: calling back a function after finishing a thread
Goto Forum:
  


Current Time: Sun Aug 18 19:52:47 CEST 2019

Total time taken to generate the page: 0.01140 seconds