Click here to Skip to main content
15,917,568 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Linker Error Pin
Gaurika Wijeratne21-Apr-02 21:40
Gaurika Wijeratne21-Apr-02 21:40 
GeneralRe: Linker Error Pin
moliate22-Apr-02 4:53
moliate22-Apr-02 4:53 
GeneralRe: Linker Error Pin
Gaurika Wijeratne23-Apr-02 9:12
Gaurika Wijeratne23-Apr-02 9:12 
GeneralRe: Linker Error Pin
Tim Smith23-Apr-02 9:28
Tim Smith23-Apr-02 9:28 
GeneralInteresting Multithreading Problem :: MFC Pin
valikac21-Apr-02 6:16
valikac21-Apr-02 6:16 
GeneralRe: Interesting Multithreading Problem :: MFC Pin
Paul M Watt21-Apr-02 9:13
mentorPaul M Watt21-Apr-02 9:13 
GeneralRe: Interesting Multithreading Problem :: MFC Pin
valikac21-Apr-02 9:26
valikac21-Apr-02 9:26 
GeneralRe: Interesting Multithreading Problem :: MFC Pin
Paul M Watt21-Apr-02 10:13
mentorPaul M Watt21-Apr-02 10:13 
I would change your update mechanism to be more passive. If you are sending a message to the main thread, then the main thread is calling the update function 10000 times, like you described in your worker thread, that would be a drain on the system.

Have you considered using a timer on the main thread, set to say 1/10th of a second. The timer handler would call the update function of the dialog, and the dialog could use a thread synchronized varaible that indicates the current iteration of your worker loop thread?

Otherwise if your dialog update function depends on processing the data for every iteration, maybe your worker thread could create a report or cache all of the data for the main thread, then the dialog would just have to update a few times a second.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Interesting Multithreading Problem :: MFC Pin
valikac21-Apr-02 11:14
valikac21-Apr-02 11:14 
GeneralRe: Alternatives Pin
valikac22-Apr-02 10:36
valikac22-Apr-02 10:36 
QuestionHow can I make the text backmode tranparent for an edit box without re-output the text? Pin
Uzi21-Apr-02 5:38
Uzi21-Apr-02 5:38 
AnswerRe: How can I make the text backmode tranparent for an edit box without re-output the text? Pin
Joaquín M López Muñoz21-Apr-02 5:49
Joaquín M López Muñoz21-Apr-02 5:49 
GeneralThread Synchronization :: MFC Pin
valikac21-Apr-02 5:31
valikac21-Apr-02 5:31 
GeneralRe: Thread Synchronization :: MFC Pin
Joaquín M López Muñoz21-Apr-02 5:44
Joaquín M López Muñoz21-Apr-02 5:44 
GeneralRe: Thread Synchronization :: MFC Pin
valikac21-Apr-02 5:56
valikac21-Apr-02 5:56 
GeneralIs it possible to set up time-out for CInternetSession Pin
21-Apr-02 5:17
suss21-Apr-02 5:17 
GeneralRe: Is it possible to set up time-out for interSession Pin
Ravi Bhavnani21-Apr-02 5:24
professionalRavi Bhavnani21-Apr-02 5:24 
GeneralRe: Thanks a lot.....^^ Pin
21-Apr-02 5:35
suss21-Apr-02 5:35 
Generalwinsock; UDP Pin
21-Apr-02 0:00
suss21-Apr-02 0:00 
GeneralRe: winsock; UDP Pin
Joaquín M López Muñoz21-Apr-02 1:35
Joaquín M López Muñoz21-Apr-02 1:35 
GeneralRe: winsock; UDP Pin
21-Apr-02 5:03
suss21-Apr-02 5:03 
GeneralRe: winsock; UDP Pin
21-Apr-02 12:36
suss21-Apr-02 12:36 
GeneralRe: winsock; UDP Pin
21-Apr-02 21:24
suss21-Apr-02 21:24 
Generaldisplaying bitmap Pin
karanba20-Apr-02 23:58
karanba20-Apr-02 23:58 
GeneralRe: displaying bitmap Pin
Christian Graus21-Apr-02 1:21
protectorChristian Graus21-Apr-02 1:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.