Click here to Skip to main content
15,912,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Design advice needed Pin
John R. Shaw25-Oct-05 9:03
John R. Shaw25-Oct-05 9:03 
GeneralRe: Design advice needed Pin
Keith Vitali26-Oct-05 9:15
Keith Vitali26-Oct-05 9:15 
AnswerRe: Design advice needed Pin
Joe Woodbury25-Oct-05 12:06
professionalJoe Woodbury25-Oct-05 12:06 
AnswerRe: Design advice needed Pin
User 58385225-Oct-05 17:21
User 58385225-Oct-05 17:21 
QuestionMalloc / Free problem Pin
Jader8925-Oct-05 6:45
Jader8925-Oct-05 6:45 
AnswerRe: Malloc / Free problem Pin
Roger Stoltz25-Oct-05 7:01
Roger Stoltz25-Oct-05 7:01 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 7:31
Jader8925-Oct-05 7:31 
AnswerRe: Malloc / Free problem Pin
Maximilien25-Oct-05 7:10
Maximilien25-Oct-05 7:10 
I'm not really familiar with multithreaded application, but I think you will need to block the
access to your data when you free it; it looks like one of your thread will try to access the data while your are free-ing it.


have a look at mutex, critical section, and all the other related mechanism for locking access to your data to only one thread.




Maximilien Lincourt
Your Head A Splode - Strong Bad
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 7:33
Jader8925-Oct-05 7:33 
QuestionRe: Malloc / Free problem Pin
David Crow25-Oct-05 7:27
David Crow25-Oct-05 7:27 
AnswerRe: Malloc / Free problem Pin
Jader8925-Oct-05 7:34
Jader8925-Oct-05 7:34 
QuestionRe: Malloc / Free problem Pin
David Crow25-Oct-05 9:27
David Crow25-Oct-05 9:27 
AnswerRe: Malloc / Free problem Pin
Jader8925-Oct-05 9:34
Jader8925-Oct-05 9:34 
AnswerRe: Malloc / Free problem Pin
Jader8925-Oct-05 9:39
Jader8925-Oct-05 9:39 
GeneralRe: Malloc / Free problem Pin
David Crow25-Oct-05 9:47
David Crow25-Oct-05 9:47 
QuestionRe: Malloc / Free problem Pin
Jader8925-Oct-05 11:00
Jader8925-Oct-05 11:00 
AnswerRe: Malloc / Free problem Pin
David Crow25-Oct-05 11:07
David Crow25-Oct-05 11:07 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 11:20
Jader8925-Oct-05 11:20 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 11:30
Jader8925-Oct-05 11:30 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 12:25
Jader8925-Oct-05 12:25 
AnswerRe: Malloc / Free problem Pin
Maximilien25-Oct-05 7:34
Maximilien25-Oct-05 7:34 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 7:45
Jader8925-Oct-05 7:45 
AnswerRe: Malloc / Free problem Pin
Jader8925-Oct-05 7:58
Jader8925-Oct-05 7:58 
GeneralRe: Malloc / Free problem Pin
Jader8925-Oct-05 8:15
Jader8925-Oct-05 8:15 
QuestionNew notification code for subclassed CButton Pin
Roger Stoltz25-Oct-05 6:28
Roger Stoltz25-Oct-05 6:28 

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.