CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Comintern

Search: Search took 0.06 seconds.

  1. Replies
    11
    Views
    2,928

    Re: Completely stumped by stack smash.

    I had actually never used the ternary operators before this assignment (and I agree with your assessment of how those lines are written). The prof had two requirements for the assignment -- design...
  2. Replies
    11
    Views
    2,928

    Re: Completely stumped by stack smash.

    It crashes every time it runs. Looping around race() doesn't cause it to crash any earlier for me either -- it's always when main exits.

    Changing the printf() gives the same segmentation fault in...
  3. Replies
    11
    Views
    2,928

    Re: Completely stumped by stack smash.

    That function was the first culprit that I looked at, but removing the function entirely gives the same crash. I check bounds on the parameters before they are passed to the function, which should...
  4. Replies
    11
    Views
    2,928

    [Solved] Completely stumped by stack smash.

    For some reason, I'm getting a segmentation fault when main() exits with the following code:


    #include <iostream>
    #include <cstring>
    #include <ctime>
    #include <cstdlib>
    #include <unistd.h>
    ...
Results 1 to 4 of 4





Click Here to Expand Forum to Full Width

Featured