worker thread problem in mfc
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
i have a simple dialog project with a button and multiline edit control. button click runs a worker thread which updates edit control data. and i have also mapped the ON_WM_CTLCOLOR() to change colors of controls and dialog. if i run the thread 2-3 times my program crashes.but if i comment all my coloring code from ON_WM_CTLCOLOR() it runs fine without any problem..
-
i have a simple dialog project with a button and multiline edit control. button click runs a worker thread which updates edit control data. and i have also mapped the ON_WM_CTLCOLOR() to change colors of controls and dialog. if i run the thread 2-3 times my program crashes.but if i comment all my coloring code from ON_WM_CTLCOLOR() it runs fine without any problem..