Click here to Skip to main content
15,907,395 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Operator Usage Pin
Maximilien20-Apr-10 6:56
Maximilien20-Apr-10 6:56 
AnswerRe: Operator Usage Pin
«_Superman_»20-Apr-10 7:45
professional«_Superman_»20-Apr-10 7:45 
AnswerRe: Operator Usage [modified] Pin
Gwenio20-Apr-10 9:15
Gwenio20-Apr-10 9:15 
GeneralRe: Operator Usage Pin
CPallini20-Apr-10 11:40
mveCPallini20-Apr-10 11:40 
GeneralRe: Operator Usage Pin
ForNow21-Apr-10 2:52
ForNow21-Apr-10 2:52 
QuestionRe: Operator Usage Pin
CPallini21-Apr-10 10:31
mveCPallini21-Apr-10 10:31 
QuestionSwallow a keyup Pin
Rozis20-Apr-10 6:05
Rozis20-Apr-10 6:05 
QuestionRe: Swallow a keyup Pin
Iain Clarke, Warrior Programmer20-Apr-10 22:20
Iain Clarke, Warrior Programmer20-Apr-10 22:20 
AnswerRe: Swallow a keyup Pin
Iain Clarke, Warrior Programmer20-Apr-10 22:32
Iain Clarke, Warrior Programmer20-Apr-10 22:32 
GeneralRe: Swallow a keyup Pin
Rozis21-Apr-10 12:23
Rozis21-Apr-10 12:23 
QuestionHow to capture a dialog without the effect of glow Pin
xugz021220-Apr-10 5:53
xugz021220-Apr-10 5:53 
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 
I am currently analyzing some nasty application crashes. Fortunately I can already reproduce these crashes within a few minutes and I get a dump that is supposed to be useful (note that it is a crash dump from an optimized release version). Let me outline the code where the application crashes (pseudo code):

int myNumberOfElements = myCalculation();

[...].// some other code, but no assignments or referencing to myNumber

if(myNumberOfElements < 1 || myNumberOfElements > 100000)
{
  return;
}

MyArray* pArray = AllocArray(myNumberOfElements); // dump shows that myNumberOfElements is greater than 10^9


AllocArray unfortunately belongs to a 3rd party library, but it basically calls malloc. It then crashes as it does not check accordingly if malloc succeeded. However, the root cause of this problem seems to be the large number of elements (which is definitely not the result of my calculation). Further there is only one assignment to myNumberOfElements and if used as parameter 'call by value' is used.

What do you guys think, is the dump file corrupt? Is there a way that the stack gets corrupted, causing this problem?
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 

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.