Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: calloc() Pin
toxcct18-Jan-07 2:38
toxcct18-Jan-07 2:38 
AnswerRe: calloc() Pin
KarstenK18-Jan-07 2:08
mveKarstenK18-Jan-07 2:08 
QuestionRe: calloc() Pin
prasad_som18-Jan-07 2:39
prasad_som18-Jan-07 2:39 
Answer[Message Deleted] Pin
toxcct18-Jan-07 2:41
toxcct18-Jan-07 2:41 
GeneralRe: calloc() Pin
prasad_som18-Jan-07 2:50
prasad_som18-Jan-07 2:50 
GeneralRe: calloc() Pin
Maximilien18-Jan-07 3:43
Maximilien18-Jan-07 3:43 
QuestionRe: calloc() Pin
David Crow18-Jan-07 2:59
David Crow18-Jan-07 2:59 
AnswerRe: calloc() Pin
James R. Twine18-Jan-07 6:00
James R. Twine18-Jan-07 6:00 
   If it returns NULL, it is a failure, like an out-of-memory or out-of-address-space condition.  If it returns a non-NULL value, but things crash when you try to use it (i.e. it is truly invalid), then I would offer that the heap information used by calloc(...) is messed up,or you are going too far with the pointer returned.

   Although, since calloc(...) has to actually touch the memory to initialize it to zero, it should crash within the call to calloc(...) if the memory it allocated is really invalid.

   So, what do you mean by "returns bad pointer"?

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

QuestionWindow for custom menu. Pin
sclown18-Jan-07 1:30
sclown18-Jan-07 1:30 
QuestionApplication Setup Pin
Try18-Jan-07 1:24
Try18-Jan-07 1:24 
AnswerRe: Application Setup Pin
Hamid_RT18-Jan-07 1:33
Hamid_RT18-Jan-07 1:33 
AnswerRe: Application Setup Pin
toxcct18-Jan-07 1:40
toxcct18-Jan-07 1:40 
QuestionCan call all API in SDK in VC++.Net Pin
Atul2318-Jan-07 1:09
Atul2318-Jan-07 1:09 
AnswerRe: Can call all API in SDK in VC++.Net Pin
Christian Graus18-Jan-07 1:30
protectorChristian Graus18-Jan-07 1:30 
AnswerRe: Can call all API in SDK in VC++.Net Pin
#realJSOP18-Jan-07 1:35
mve#realJSOP18-Jan-07 1:35 
QuestionIIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
MJ Lee18-Jan-07 1:07
MJ Lee18-Jan-07 1:07 
AnswerRe: IIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
Christian Graus18-Jan-07 1:34
protectorChristian Graus18-Jan-07 1:34 
AnswerRe: IIs it possible that add background image to (MFC)Editbox(and Other Control)? Pin
Hamid_RT18-Jan-07 1:39
Hamid_RT18-Jan-07 1:39 
QuestionGetProcessId equivalent Pin
aliaa18-Jan-07 1:00
aliaa18-Jan-07 1:00 
AnswerRe: GetProcessId equivalent Pin
Roger Stoltz18-Jan-07 2:09
Roger Stoltz18-Jan-07 2:09 
AnswerRe: GetProcessId equivalent Pin
Mark Salsbery18-Jan-07 6:25
Mark Salsbery18-Jan-07 6:25 
QuestionHow to copy resource from one file to other Pin
Atul2318-Jan-07 0:58
Atul2318-Jan-07 0:58 
AnswerRe: How to copy resource from one file to other Pin
Iain Clarke, Warrior Programmer18-Jan-07 1:45
Iain Clarke, Warrior Programmer18-Jan-07 1:45 
QuestionUnresolved token error Pin
73Zeppelin18-Jan-07 0:49
73Zeppelin18-Jan-07 0:49 
AnswerRe: Unresolved token error Pin
Cedric Moonen18-Jan-07 0:52
Cedric Moonen18-Jan-07 0:52 

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.