Click here to Skip to main content
15,910,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionError reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 17:49
cy163@hotmail.com20-Dec-06 17:49 
AnswerRe: Error reported by BoundsChecker Pin
Mark Salsbery20-Dec-06 18:08
Mark Salsbery20-Dec-06 18:08 
GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 18:27
cy163@hotmail.com20-Dec-06 18:27 
GeneralRe: Error reported by BoundsChecker Pin
benjymous20-Dec-06 22:06
benjymous20-Dec-06 22:06 
GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com21-Dec-06 5:00
cy163@hotmail.com21-Dec-06 5:00 
QuestionRe: Error reported by BoundsChecker Pin
prasad_som20-Dec-06 18:09
prasad_som20-Dec-06 18:09 
AnswerRe: Error reported by BoundsChecker Pin
cy163@hotmail.com20-Dec-06 18:23
cy163@hotmail.com20-Dec-06 18:23 
AnswerRe: Error reported by BoundsChecker Pin
James R. Twine21-Dec-06 1:18
James R. Twine21-Dec-06 1:18 
   The error you are getting, "You have passed an invalid memory address as a pointer to a Windows API function", is not really correct.  Presuming that both pA1 and pA2 allocated correctly, the memory referenced by the Name arrays will be correct, so you did pass valid addresses to the strcpy(...) function.

   However, if you do not initialize the data in the memory for the Name arrays, then the strcpy(...) function will start to copy memory from the start of the two array locations, which is correct, but it may continue past the valid memory for the arrays until it encounters a NUL character.

   Peace!

-=- James
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!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

GeneralRe: Error reported by BoundsChecker Pin
cy163@hotmail.com21-Dec-06 5:01
cy163@hotmail.com21-Dec-06 5:01 
GeneralRe: Error reported by BoundsChecker Pin
Mark Salsbery21-Dec-06 5:14
Mark Salsbery21-Dec-06 5:14 
QuestionDrawing Horizontal text Pin
NILANKARAJA20-Dec-06 17:45
NILANKARAJA20-Dec-06 17:45 
AnswerRe: Drawing Horizontal text Pin
Hamid_RT20-Dec-06 18:13
Hamid_RT20-Dec-06 18:13 
QuestionRe: Drawing Horizontal text Pin
NILANKARAJA20-Dec-06 21:30
NILANKARAJA20-Dec-06 21:30 
AnswerRe: Drawing Horizontal text Pin
Waldermort20-Dec-06 21:45
Waldermort20-Dec-06 21:45 
AnswerRe: Drawing Horizontal text Pin
Hamid_RT21-Dec-06 1:37
Hamid_RT21-Dec-06 1:37 
AnswerRe: Drawing Horizontal text Pin
Stephen Hewitt2-Jan-07 13:41
Stephen Hewitt2-Jan-07 13:41 
Questionafter insert CButton...the program can't execute? Pin
cyn820-Dec-06 17:18
cyn820-Dec-06 17:18 
AnswerRe: after insert CButton...the program can't execute? Pin
Sam Hobbs20-Dec-06 17:26
Sam Hobbs20-Dec-06 17:26 
GeneralRe: after insert CButton...the program can't execute? Pin
cyn820-Dec-06 18:47
cyn820-Dec-06 18:47 
GeneralRe: after insert CButton...the program can't execute? Pin
Sam Hobbs20-Dec-06 22:15
Sam Hobbs20-Dec-06 22:15 
AnswerRe: after insert CButton...the program can't execute? Pin
Hamid_RT20-Dec-06 17:42
Hamid_RT20-Dec-06 17:42 
GeneralRe: after insert CButton...the program can't execute? Pin
cyn820-Dec-06 18:49
cyn820-Dec-06 18:49 
GeneralRe: after insert CButton...the program can't execute? Pin
Hamid_RT20-Dec-06 19:19
Hamid_RT20-Dec-06 19:19 
QuestionRe: after insert CButton...the program can't execute? Pin
prasad_som20-Dec-06 19:12
prasad_som20-Dec-06 19:12 
Questionbitwise operators. Pin
asp.netProgrammer20-Dec-06 14:53
asp.netProgrammer20-Dec-06 14:53 

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.