Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Error packing files into buffer and sending them over network [modified] Pin
andrew_dk11-Jun-09 11:38
andrew_dk11-Jun-09 11:38 
QuestionMFC Feature Pack Pin
kedanz10-Jun-09 15:48
kedanz10-Jun-09 15:48 
QuestionWhere is printf? Pin
Gjm10-Jun-09 15:05
Gjm10-Jun-09 15:05 
AnswerRe: Where is printf? Pin
«_Superman_»10-Jun-09 15:25
professional«_Superman_»10-Jun-09 15:25 
GeneralRe: Where is printf? Pin
Gjm10-Jun-09 15:32
Gjm10-Jun-09 15:32 
QuestionRe: Where is printf? Pin
David Crow10-Jun-09 15:51
David Crow10-Jun-09 15:51 
GeneralRe: Where is printf? Pin
CPallini10-Jun-09 21:24
mveCPallini10-Jun-09 21:24 
QuestionWrong help file afxhelp.hm path in VC 6.0 SOLVED Pin
Vaclav_10-Jun-09 10:00
Vaclav_10-Jun-09 10:00 
AnswerRe: Wrong help file afxhelp.hm path in VC 6.0 Pin
Randor 10-Jun-09 10:42
professional Randor 10-Jun-09 10:42 
GeneralRe: Wrong help file afxhelp.hm path in VC 6.0 Pin
Vaclav_11-Jun-09 7:27
Vaclav_11-Jun-09 7:27 
QuestionSharing a singleton in an executable and a runtime DLL Pin
Dustin Henry10-Jun-09 6:50
Dustin Henry10-Jun-09 6:50 
AnswerRe: Sharing a singleton in an executable and a runtime DLL Pin
Stuart Dootson10-Jun-09 8:40
professionalStuart Dootson10-Jun-09 8:40 
GeneralRe: Sharing a singleton in an executable and a runtime DLL Pin
Dustin Henry11-Jun-09 11:19
Dustin Henry11-Jun-09 11:19 
GeneralRe: Sharing a singleton in an executable and a runtime DLL Pin
Stuart Dootson11-Jun-09 22:09
professionalStuart Dootson11-Jun-09 22:09 
QuestionStructure Value is not getting updated Pin
sakthii10-Jun-09 4:59
sakthii10-Jun-09 4:59 
AnswerRe: Structure Value is not getting updated Pin
«_Superman_»10-Jun-09 5:18
professional«_Superman_»10-Jun-09 5:18 

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.