Click here to Skip to main content
15,913,310 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionProblem in Drop down list box Pin
Pryabu10-Jun-09 21:17
Pryabu10-Jun-09 21:17 
AnswerRe: Problem in Drop down list box Pin
Pryabu10-Jun-09 22:08
Pryabu10-Jun-09 22:08 
GeneralRe: Problem in Drop down list box Pin
ali kanju10-Jun-09 23:13
ali kanju10-Jun-09 23:13 
GeneralRe: Problem in Drop down list box [modified] Pin
Pryabu10-Jun-09 23:52
Pryabu10-Jun-09 23:52 
QuestionHow 2 display a message box Pin
deadlyabbas10-Jun-09 20:59
deadlyabbas10-Jun-09 20:59 
AnswerRe: How 2 display a message box Pin
CPallini10-Jun-09 21:25
mveCPallini10-Jun-09 21:25 
QuestionRe: How 2 display a message box Pin
David Crow11-Jun-09 3:27
David Crow11-Jun-09 3:27 
QuestionInheriting Environment Block Pin
g_satish10-Jun-09 20:50
g_satish10-Jun-09 20:50 
AnswerRe: Inheriting Environment Block Pin
Randor 11-Jun-09 4:12
professional Randor 11-Jun-09 4:12 
QuestionHow to get the Newly changed environment settings to current process? Pin
g_satish10-Jun-09 20:46
g_satish10-Jun-09 20:46 
AnswerRe: How to get the Newly changed environment settings to current process? Pin
Naveen10-Jun-09 22:08
Naveen10-Jun-09 22:08 
GeneralRe: How to get the Newly changed environment settings to current process? Pin
g_satish11-Jun-09 2:55
g_satish11-Jun-09 2:55 
Question[Message Deleted] Pin
trioum10-Jun-09 19:00
trioum10-Jun-09 19:00 
AnswerRe: process communication Pin
Hamid_RT10-Jun-09 23:32
Hamid_RT10-Jun-09 23:32 
General[Message Deleted] Pin
trioum11-Jun-09 0:09
trioum11-Jun-09 0:09 
GeneralRe: process communication Pin
Hamid_RT11-Jun-09 1:39
Hamid_RT11-Jun-09 1:39 
QuestionRe: process communication Pin
David Crow11-Jun-09 3:30
David Crow11-Jun-09 3:30 
QuestionPipe Problem Pin
ssm198411910-Jun-09 17:10
ssm198411910-Jun-09 17:10 
AnswerRe: Pipe Problem Pin
Randor 11-Jun-09 4:17
professional Randor 11-Jun-09 4:17 
GeneralRe: Pipe Problem Pin
ssm198411914-Jun-09 15:33
ssm198411914-Jun-09 15:33 
QuestionError packing files into buffer and sending them over network [modified] Pin
andrew_dk10-Jun-09 16:58
andrew_dk10-Jun-09 16:58 
AnswerRe: Error packing files into buffer and sending them over network Pin
Ozer Karaagac10-Jun-09 20:00
professionalOzer Karaagac10-Jun-09 20:00 
GeneralRe: Error packing files into buffer and sending them over network Pin
andrew_dk10-Jun-09 20:41
andrew_dk10-Jun-09 20:41 
GeneralRe: Error packing files into buffer and sending them over network Pin
Ozer Karaagac11-Jun-09 0:52
professionalOzer Karaagac11-Jun-09 0:52 
Well. The macro is using to store 32-bits size value in proper order, it's clear. But, I can't say that I understood the memory allocation exactly. Lets consider a fictive situation. m_nBytesAllocated is 10485760 bytes (10 MB) before the call to InternalAlloc member. if the requested nBytes is 10485761 bytes, 20 MB of space will be allocated. Sure?

Considering that you are sure, there isn't any buffer overflow problem. And I think that your linux daemon runs on a different CPU architecture, is it possible that there would be a page boundary problem in reading from a device?

The buffer will be passed to read function is starting with offset 54. Try to handle that value aligned in a page boundary consulting your CPU manuals. Or give it a try with a higher fabricated value for a page (e.g. 64K).
GeneralRe: Error packing files into buffer and sending them over network Pin
andrew_dk11-Jun-09 10:10
andrew_dk11-Jun-09 10:10 

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.