Click here to Skip to main content
15,898,036 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MDI: Not opening a new document on startup Pin
Le centriste19-Nov-02 16:27
Le centriste19-Nov-02 16:27 
Generalbrowser control Pin
Anonymous18-Nov-02 16:01
Anonymous18-Nov-02 16:01 
GeneralHelp with progress controls Pin
Steven M Hunt18-Nov-02 14:00
Steven M Hunt18-Nov-02 14:00 
GeneralRe: Help with progress controls Pin
Christian Graus18-Nov-02 14:33
protectorChristian Graus18-Nov-02 14:33 
GeneralRe: Help with progress controls Pin
Steven M Hunt18-Nov-02 15:15
Steven M Hunt18-Nov-02 15:15 
GeneralRe: Help with progress controls Pin
Christian Graus18-Nov-02 15:28
protectorChristian Graus18-Nov-02 15:28 
GeneralRe: Help with progress controls Pin
Jason Henderson18-Nov-02 17:59
Jason Henderson18-Nov-02 17:59 
Generalwant suggestion in MFC. Pin
User 988518-Nov-02 13:37
User 988518-Nov-02 13:37 
I have an app, that receives data on multiple sockets on a thread pool and updates certain data objects. These data objects are accessed by MFC CFrameWnd derived windows to display them. I have seen that using critical sections in the data classes lead to many unfavourable inetractions causing deadlocks in MFC.

Is there an article/discussion on the procedures/guidelines that need to be followed in the design to prevent deadlocks in MFC apps when the data is mdified from another thread and the access to the data objects are protected using critical section or mutex?

Also, is it advisable to use a timer for periodic refresh of the windows OR send a message from the other thread to the window, asking it to refresh because of a data change? What are the procedures that can be used to prevent excessive re-painting due to large amounts of data arriving in a short period?

Any inputs are welcome.

Thomas


My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers


modified 29-Aug-18 21:01pm.

GeneralRe: want suggestion in MFC. Pin
Gary R. Wheeler18-Nov-02 15:16
Gary R. Wheeler18-Nov-02 15:16 
GeneralRe: want suggestion in MFC. Pin
Anonymous18-Nov-02 16:54
Anonymous18-Nov-02 16:54 
GeneralHelp: Performance Counter (PerfLib) 8-Byte Alignment Warning (Event ID 1016) Pin
Gaul18-Nov-02 13:32
Gaul18-Nov-02 13:32 
QuestionHow do you prevent font size change while scaling DC? Pin
Miguel Lopes18-Nov-02 13:13
Miguel Lopes18-Nov-02 13:13 
GeneralGUI Leaks Pin
Matthew R. Miller18-Nov-02 12:25
Matthew R. Miller18-Nov-02 12:25 
GeneralRe: GUI Leaks Pin
Christian Graus18-Nov-02 12:38
protectorChristian Graus18-Nov-02 12:38 
GeneralSaving a tree control Pin
Russell Thorburn18-Nov-02 11:23
sussRussell Thorburn18-Nov-02 11:23 
GeneralRe: Saving a tree control Pin
Joaquín M López Muñoz18-Nov-02 11:30
Joaquín M López Muñoz18-Nov-02 11:30 
GeneralDirectX problem Pin
Selevercin18-Nov-02 11:19
Selevercin18-Nov-02 11:19 
GeneralRe: DirectX problem Pin
Paul M Watt18-Nov-02 13:29
mentorPaul M Watt18-Nov-02 13:29 
GeneralSubtle bug with static members... Pin
Jamie Hale18-Nov-02 10:54
Jamie Hale18-Nov-02 10:54 
GeneralRe: Subtle bug with static members... Pin
Christian Graus18-Nov-02 11:05
protectorChristian Graus18-Nov-02 11:05 
GeneralRe: Subtle bug with static members... Pin
Jamie Hale18-Nov-02 11:10
Jamie Hale18-Nov-02 11:10 
GeneralRe: Subtle bug with static members... Pin
Christian Graus19-Nov-02 10:08
protectorChristian Graus19-Nov-02 10:08 
GeneralRe: Subtle bug with static members... Pin
Jamie Hale18-Nov-02 11:05
Jamie Hale18-Nov-02 11:05 
GeneralRe: Subtle bug with static members... [corrected] Pin
Joaquín M López Muñoz18-Nov-02 11:06
Joaquín M López Muñoz18-Nov-02 11:06 
GeneralRe: Subtle bug with static members... [corrected] Pin
Jamie Hale18-Nov-02 11:11
Jamie Hale18-Nov-02 11:11 

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.