Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help needed for speech capture project! Pin
Christian Graus24-Oct-05 15:28
protectorChristian Graus24-Oct-05 15:28 
GeneralRe: Help needed for speech capture project! Pin
student_eng24-Oct-05 15:31
student_eng24-Oct-05 15:31 
GeneralRe: Help needed for speech capture project! Pin
Christian Graus24-Oct-05 15:37
protectorChristian Graus24-Oct-05 15:37 
AnswerRe: Help needed for speech capture project! Pin
normanS24-Oct-05 20:24
normanS24-Oct-05 20:24 
QuestionChunk data trasmfer between two thread. Pin
LeeeNN24-Oct-05 13:39
LeeeNN24-Oct-05 13:39 
AnswerRe: Chunk data trasmfer between two thread. Pin
PJ Arends24-Oct-05 15:17
professionalPJ Arends24-Oct-05 15:17 
GeneralRe: Chunk data trasmfer between two thread. Pin
LeeeNN24-Oct-05 15:51
LeeeNN24-Oct-05 15:51 
AnswerRe: Chunk data trasmfer between two thread. Pin
John R. Shaw24-Oct-05 18:32
John R. Shaw24-Oct-05 18:32 
I would use criticalSections and Events.

I've used a circular que before to accomplish this. Each slot consisted of a buffer, allocated to a fixed size at start up (no more allocating required, unless user requested change at runtime). The lower priority thread checks for an event that says there is data in que (that can be read from the current head position). While the prioity thread can still be writing to the tail positon in the que (two seperate critical sections).

Basicaly, I automaticaly try to avoid thrashing memory by constantly allocating and deallocating memory. It slows things down and increases the chance that the a memory exception will occur. So if you can set a side memory for the sole purpose of communicating between your threads, you can avoid unexpected errors.

INTP
Every thing is relative...
GeneralRe: Chunk data trasmfer between two thread. Pin
LeeeNN25-Oct-05 8:01
LeeeNN25-Oct-05 8:01 
QuestionEvent Handling Pin
suezzz0024-Oct-05 12:42
suezzz0024-Oct-05 12:42 
AnswerRe: Event Handling Pin
khan++24-Oct-05 19:36
khan++24-Oct-05 19:36 
GeneralRe: Event Handling Pin
S. Senthil Kumar24-Oct-05 20:08
S. Senthil Kumar24-Oct-05 20:08 
GeneralRe: Event Handling Pin
khan++24-Oct-05 20:36
khan++24-Oct-05 20:36 
AnswerRe: Event Handling Pin
S. Senthil Kumar24-Oct-05 21:09
S. Senthil Kumar24-Oct-05 21:09 
Questiondrawing on mouse move Pin
Ann6624-Oct-05 11:37
sussAnn6624-Oct-05 11:37 
AnswerRe: drawing on mouse move Pin
Christian Graus24-Oct-05 12:42
protectorChristian Graus24-Oct-05 12:42 
AnswerRe: drawing on mouse move Pin
vikas amin24-Oct-05 19:53
vikas amin24-Oct-05 19:53 
QuestionGet the folder of current application Pin
ddmcr24-Oct-05 9:24
ddmcr24-Oct-05 9:24 
AnswerRe: Get the folder of current application Pin
Ghasrfakhri24-Oct-05 9:42
Ghasrfakhri24-Oct-05 9:42 
GeneralRe: Get the folder of current application Pin
ddmcr24-Oct-05 9:56
ddmcr24-Oct-05 9:56 
GeneralRe: Get the folder of current application Pin
Blake Miller24-Oct-05 12:17
Blake Miller24-Oct-05 12:17 
GeneralRe: Get the folder of current application Pin
toxcct24-Oct-05 21:59
toxcct24-Oct-05 21:59 
QuestionRe: Get the folder of current application Pin
David Crow25-Oct-05 3:55
David Crow25-Oct-05 3:55 
AnswerRe: Get the folder of current application Pin
toxcct25-Oct-05 4:10
toxcct25-Oct-05 4:10 
AnswerRe: Get the folder of current application Pin
ThatsAlok24-Oct-05 18:41
ThatsAlok24-Oct-05 18:41 

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.