Click here to Skip to main content
15,914,608 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWindows - wininet - problem closing TCP connections Pin
smaon23-Jun-08 2:12
smaon23-Jun-08 2:12 
AnswerRe: Windows - wininet - problem closing TCP connections Pin
smaon23-Jun-08 6:39
smaon23-Jun-08 6:39 
GeneralRe: Windows - wininet - problem closing TCP connections Pin
Mark Salsbery23-Jun-08 8:52
Mark Salsbery23-Jun-08 8:52 
Questioncallback priority Pin
rp_suman22-Jun-08 21:48
rp_suman22-Jun-08 21:48 
AnswerRe: callback priority Pin
CPallini22-Jun-08 21:54
mveCPallini22-Jun-08 21:54 
GeneralRe: callback priority Pin
rp_suman22-Jun-08 22:12
rp_suman22-Jun-08 22:12 
QuestionRe: callback priority Pin
CPallini22-Jun-08 22:26
mveCPallini22-Jun-08 22:26 
AnswerRe: callback priority Pin
rp_suman22-Jun-08 22:38
rp_suman22-Jun-08 22:38 
Hi,

The callback get MIDI message and write into ring buffer after that it wakeup processing thread using event.

Sometimes when callback got more than one message, it writes in ring buffer and wakeup processing thread many times.

This time, If the callback is on writing a message from MIDI to ringbuffer and processing thread think this message is complete and reads by incrementing pointer.
If processing thread does it faster, it goes one byte beyond actual message(not complete) written by callback then callback get "buffer overrun" condition.

Thats why now, I made processing thread priority below normal and seems working.

Thanks,
Suman

--
"Programming is an art that fights back!"

GeneralRe: callback priority Pin
CPallini22-Jun-08 22:47
mveCPallini22-Jun-08 22:47 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 0:47
rp_suman23-Jun-08 0:47 
GeneralRe: callback priority Pin
Cedric Moonen23-Jun-08 2:02
Cedric Moonen23-Jun-08 2:02 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 4:17
rp_suman23-Jun-08 4:17 
GeneralRe: callback priority Pin
Cedric Moonen23-Jun-08 4:21
Cedric Moonen23-Jun-08 4:21 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 17:11
rp_suman23-Jun-08 17:11 
QuestionProblem in accessing nodes of a list in Release build Pin
Aryan S22-Jun-08 21:30
Aryan S22-Jun-08 21:30 
QuestionRe: Problem in accessing nodes of a list in Release build [modified] Pin
CPallini22-Jun-08 21:44
mveCPallini22-Jun-08 21:44 
AnswerRe: Problem in accessing nodes of a list in Release build Pin
Cedric Moonen22-Jun-08 21:45
Cedric Moonen22-Jun-08 21:45 
GeneralRe: Problem in accessing nodes of a list in Release build Pin
Aryan S22-Jun-08 22:48
Aryan S22-Jun-08 22:48 
GeneralRe: Problem in accessing nodes of a list in Release build Pin
Cedric Moonen23-Jun-08 2:09
Cedric Moonen23-Jun-08 2:09 
QuestionOnKillfocus on closing Dialog not called --- PLZ GIVE SUGGESTION!! Pin
Shaileshhex22-Jun-08 21:05
Shaileshhex22-Jun-08 21:05 
AnswerRe: OnKillfocus on closing Dialog not called --- PLZ GIVE SUGGESTION!! Pin
David Crow23-Jun-08 3:32
David Crow23-Jun-08 3:32 
QuestionHuge array processing. Pin
Rustik22-Jun-08 21:04
Rustik22-Jun-08 21:04 
AnswerRe: Huge array processing. Pin
Cedric Moonen22-Jun-08 21:22
Cedric Moonen22-Jun-08 21:22 
GeneralRe: Huge array processing. Pin
Rustik22-Jun-08 22:44
Rustik22-Jun-08 22:44 
GeneralRe: Huge array processing. Pin
CPallini22-Jun-08 23:08
mveCPallini22-Jun-08 23:08 

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.