Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Open OUTLOOK *.pst Pin
Alexandru Savescu12-Jun-02 0:03
Alexandru Savescu12-Jun-02 0:03 
GeneralRe: Open OUTLOOK *.pst Pin
Michael P Butler12-Jun-02 2:07
Michael P Butler12-Jun-02 2:07 
Generalproblems with... MDI and Splitter::CreateView. Pin
DerekSaw11-Jun-02 21:09
DerekSaw11-Jun-02 21:09 
GeneralRe: problems with... MDI and Splitter::CreateView. Pin
Stephen C. Steel13-Jun-02 12:40
Stephen C. Steel13-Jun-02 12:40 
GeneralRe: problems with... MDI and Splitter::CreateView. Pin
DerekSaw13-Jun-02 15:06
DerekSaw13-Jun-02 15:06 
QuestionWhat the! Pin
wilche11-Jun-02 20:21
wilche11-Jun-02 20:21 
AnswerRe: What the! Pin
Alexandru Savescu11-Jun-02 20:47
Alexandru Savescu11-Jun-02 20:47 
GeneralRe: What the! Pin
wilche12-Jun-02 13:16
wilche12-Jun-02 13:16 
Actually thanks for the reply but I think I may have found the problem.

I added a Sleep function to force the thread to give up some CPU resources, then it works fine. I do this whenever the PostThreadMessage fails. So I wait and then resend.

However, this seems to defeat the purpose of threads.

I have two versions of the same application running, the difference is that one version pass its work using UI thread, while the other uses the main thread to do all its work.

Currently it seems that the version using the UI thread is taking slightly longer than the other version because of this sleep function. It seems that the application is being seriously overloaded by the amount of messages it receives, causing it to resend lots of messages, making it sleep for long times! Furthermore it has taken me a lot more effort in getting this threaded version to work than the other version.

So maybe threading is not always the best solution to improve performance?


Kind regards,
wilche
GeneralRe: What the! Pin
Mike Nordell13-Jun-02 4:39
Mike Nordell13-Jun-02 4:39 
GeneralRe: What the! Pin
Tim Smith13-Jun-02 4:45
Tim Smith13-Jun-02 4:45 
GeneralWM_NCPAINT not being called by RedrawWindow Pin
Roman Nurik11-Jun-02 18:24
Roman Nurik11-Jun-02 18:24 
GeneralSerial port stripping characters. Pin
clintsinger11-Jun-02 17:32
clintsinger11-Jun-02 17:32 
GeneralRe: Serial port stripping characters. Pin
Tim Smith12-Jun-02 1:51
Tim Smith12-Jun-02 1:51 
GeneralRe: Serial port stripping characters. Pin
Roger Allen12-Jun-02 2:01
Roger Allen12-Jun-02 2:01 
GeneralODBC Pin
11-Jun-02 16:31
suss11-Jun-02 16:31 
GeneralRe: ODBC Pin
Nish Nishant11-Jun-02 17:29
sitebuilderNish Nishant11-Jun-02 17:29 
GeneralRe: ODBC Pin
11-Jun-02 18:35
suss11-Jun-02 18:35 
Generalarticles about monikers Pin
Chen Jiadong11-Jun-02 16:20
Chen Jiadong11-Jun-02 16:20 
GeneralRe: articles about monikers Pin
Rama Krishna Vavilala11-Jun-02 18:41
Rama Krishna Vavilala11-Jun-02 18:41 
GeneralVersion of msado15.dll and VStudio service packs Pin
Rostrox11-Jun-02 15:45
Rostrox11-Jun-02 15:45 
GeneralRe: Version of msado15.dll and VStudio service packs Pin
Rama Krishna Vavilala11-Jun-02 17:18
Rama Krishna Vavilala11-Jun-02 17:18 
GeneralCopy TreeView Branch - Not to another but clipboard Pin
Paul Belikian11-Jun-02 15:49
Paul Belikian11-Jun-02 15:49 
GeneralRe: Copy TreeView Branch - Not to another but clipboard Pin
benjymous12-Jun-02 2:39
benjymous12-Jun-02 2:39 
GeneralRe: Copy TreeView Branch - Not to another but clipboard Pin
Paul Belikian12-Jun-02 16:13
Paul Belikian12-Jun-02 16:13 
GeneralRe: Copy TreeView Branch - Not to another but clipboard Pin
benjymous13-Jun-02 9:39
benjymous13-Jun-02 9:39 

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.