Click here to Skip to main content
15,894,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please guide I program for fax modem, thanks Pin
David Crow7-Apr-09 3:08
David Crow7-Apr-09 3:08 
Questionprevious posts and replies.... Pin
p_19606-Apr-09 23:17
p_19606-Apr-09 23:17 
AnswerRe: previous posts and replies.... Pin
Niklas L6-Apr-09 23:24
Niklas L6-Apr-09 23:24 
AnswerRe: previous posts and replies.... Pin
CPallini6-Apr-09 23:26
mveCPallini6-Apr-09 23:26 
QuestionHow to display a diagram charted by visio, such as topological diagram, iwith mfc? Pin
liuxg20086-Apr-09 22:27
liuxg20086-Apr-09 22:27 
QuestionSynchronization problem. (Hiding pointers addresses behind access keys) Pin
Ahmed Charfeddine6-Apr-09 21:54
Ahmed Charfeddine6-Apr-09 21:54 
AnswerRe: Synchrnoization problem. Pin
Sarath C6-Apr-09 22:04
Sarath C6-Apr-09 22:04 
GeneralRe: Synchrnoization problem. Pin
Ahmed Charfeddine6-Apr-09 22:22
Ahmed Charfeddine6-Apr-09 22:22 
Thank you for your reply,

According to your suggestion, threads will act on the shared pointers instead of the pointers to the actual objects in memory.
Does that help avoid the program to crash when I explicitly delete an object and that another thread that tries to use it afterward ?
And what about synchronization ? If a thread is trying to use a share pointer, am I garanteed that the other thread that tries to access the same share pointer is blocked ?


Sarath. wrote:
the CCriticalSection should be a pointer right?


In my case no.
I have anothe global function that creates a CChanel object. all it has to do is to create a new CChannelContext structure, initialize the CriticalSection and set the pChannel member to the address of the newly created CChannel then add the whol thing to the map. So in my point of view, creating the CriticalSection with the new operator or on the heap, is the same.

Easy Profiler : a compile-time profiler for C++
www.potatosoftware.com

QuestionMainFrame Maximization problem Pin
prithaa6-Apr-09 20:50
prithaa6-Apr-09 20:50 
AnswerRe: MainFrame Maximization problem Pin
«_Superman_»6-Apr-09 21:04
professional«_Superman_»6-Apr-09 21:04 
GeneralRe: MainFrame Maximization problem Pin
prithaa7-Apr-09 19:38
prithaa7-Apr-09 19:38 
GeneralRe: MainFrame Maximization problem Pin
prithaa10-Apr-09 5:53
prithaa10-Apr-09 5:53 
QuestionShow selected rows in ListCtrl Pin
Pryabu6-Apr-09 19:14
Pryabu6-Apr-09 19:14 
AnswerRe: Show selected rows in ListCtrl Pin
«_Superman_»6-Apr-09 19:24
professional«_Superman_»6-Apr-09 19:24 
GeneralRe: Show selected rows in ListCtrl Pin
Pryabu6-Apr-09 19:58
Pryabu6-Apr-09 19:58 
QuestionRe: Show selected rows in ListCtrl Pin
«_Superman_»6-Apr-09 20:13
professional«_Superman_»6-Apr-09 20:13 
AnswerRe: Show selected rows in ListCtrl Pin
Pryabu6-Apr-09 20:19
Pryabu6-Apr-09 20:19 
GeneralRe: Show selected rows in ListCtrl Pin
Pryabu6-Apr-09 20:25
Pryabu6-Apr-09 20:25 
QuestionRe: Show selected rows in ListCtrl Pin
David Crow7-Apr-09 3:12
David Crow7-Apr-09 3:12 
AnswerRe: Show selected rows in ListCtrl Pin
CDrone6-Apr-09 20:00
CDrone6-Apr-09 20:00 
GeneralRe: Show selected rows in ListCtrl Pin
Pryabu6-Apr-09 20:10
Pryabu6-Apr-09 20:10 
GeneralRe: Show selected rows in ListCtrl Pin
CDrone6-Apr-09 20:22
CDrone6-Apr-09 20:22 
AnswerRe: Show selected rows in ListCtrl Pin
Sophiya Chen6-Apr-09 22:32
Sophiya Chen6-Apr-09 22:32 
GeneralRe: Show selected rows in ListCtrl Pin
Sophiya Chen6-Apr-09 22:44
Sophiya Chen6-Apr-09 22:44 
QuestionWhat does this mean? Pin
Software20076-Apr-09 7:24
Software20076-Apr-09 7:24 

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.