Click here to Skip to main content
15,896,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVisual Studio 2010 - Incremental Build Problem Pin
Mike Doner20-Apr-10 5:51
Mike Doner20-Apr-10 5:51 
QuestionMessage Removed Pin
20-Apr-10 5:39
Lodeclaw20-Apr-10 5:39 
AnswerRe: DateTimeControl date format Pin
daveyerwin20-Apr-10 6:19
daveyerwin20-Apr-10 6:19 
GeneralRe: DateTimeControl date format Pin
Lodeclaw20-Apr-10 6:21
Lodeclaw20-Apr-10 6:21 
GeneralRe: DateTimeControl date format Pin
David Crow20-Apr-10 9:27
David Crow20-Apr-10 9:27 
AnswerRe: DateTimeControl date format Pin
daveyerwin20-Apr-10 6:40
daveyerwin20-Apr-10 6:40 
QuestionHTTP header processing in C++ Pin
Fareed Rizkalla20-Apr-10 4:16
Fareed Rizkalla20-Apr-10 4:16 
QuestionRe: HTTP header processing in C++ Pin
David Crow20-Apr-10 4:42
David Crow20-Apr-10 4:42 
AnswerRe: HTTP header processing in C++ Pin
Fareed Rizkalla20-Apr-10 13:40
Fareed Rizkalla20-Apr-10 13:40 
GeneralRe: HTTP header processing in C++ Pin
Moak20-Apr-10 23:01
Moak20-Apr-10 23:01 
QuestionRe: HTTP header processing in C++ Pin
David Crow21-Apr-10 2:52
David Crow21-Apr-10 2:52 
QuestionLocal Variable changes suddenly Pin
Nxsis20-Apr-10 3:03
Nxsis20-Apr-10 3:03 
AnswerRe: Local Variable changes suddenly Pin
Stephen Hewitt20-Apr-10 3:12
Stephen Hewitt20-Apr-10 3:12 
GeneralRe: Local Variable changes suddenly Pin
Nxsis20-Apr-10 19:44
Nxsis20-Apr-10 19:44 
GeneralRe: Local Variable changes suddenly Pin
Stephen Hewitt21-Apr-10 0:21
Stephen Hewitt21-Apr-10 0:21 
QuestionRe: Local Variable changes suddenly Pin
David Crow20-Apr-10 3:44
David Crow20-Apr-10 3:44 
AnswerRe: Local Variable changes suddenly Pin
Nxsis20-Apr-10 19:38
Nxsis20-Apr-10 19:38 
QuestionRe: Local Variable changes suddenly Pin
David Crow21-Apr-10 2:50
David Crow21-Apr-10 2:50 
AnswerRe: Local Variable changes suddenly Pin
LintMan20-Apr-10 6:18
LintMan20-Apr-10 6:18 
So the test for myNumberOfElements being out of range happens right before the call to AllocArray? That's not a lot of time for it to be getting corrupted by your code before the call. It seems definitely possible the value seen in dump file is corrupt as a result of the crash rather than the cause of the crash. But...
- As already asked, how are you looking at the dump file?
- Does the debug version of the program work OK?
- Have you tried turning off or lowering optimization? Try this first if you haven't!

- Are you sure that AllocArray is capable of handling 100000 elements?

Some things to maybe try:
- Can you modify your program to output myNumberOfElements right before the call?
- Create a global variable to hold the result of myCalculation and pass that in to AllocArray. If this is memory/stack corruption happening in your function, it's unlikely it would step on the global var in the same way.
- Hardcode the value being passed in to AllocArray. If you can find out and use the real result of myCalculation, even better. Does this still crash? Either way, this will tell you a lot about what's going on.
GeneralRe: Local Variable changes suddenly Pin
Nxsis20-Apr-10 19:37
Nxsis20-Apr-10 19:37 
GeneralRe: Local Variable changes suddenly Pin
LintMan21-Apr-10 4:01
LintMan21-Apr-10 4:01 
GeneralRe: Local Variable changes suddenly Pin
Nxsis22-Apr-10 2:37
Nxsis22-Apr-10 2:37 
GeneralRe: Local Variable changes suddenly Pin
LintMan23-Apr-10 6:50
LintMan23-Apr-10 6:50 
QuestionWindows 7 + Mailslot [solved] Pin
Member 138094720-Apr-10 2:46
Member 138094720-Apr-10 2:46 
AnswerRe: Windows 7 + Mailslot Pin
Michel Godfroid20-Apr-10 3:31
Michel Godfroid20-Apr-10 3:31 

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.