#include <stdio.h>
#include <unistd.h>
struct myStruc {
int array[3000*2000];
};
void foo(const myStruc &v)
{
printf("%d\n", v.array[1]);
}
int main(int , char* [])
{
printf("hello\n");
fflush(stdout);
sleep(1);
myStruc currentStruc;
foo(currentStruc);
}
#include <stdio.h>
#include <unistd.h>
struct myStruc {
int array[3000*2000];
};
void foo(const myStruc &v)
{
printf("%d\n", v.array[1]);
}
int main(int , char* [])
{
printf("hello\n");
fflush(stdout);
sleep(1);
myStruc currentStruc;
foo(currentStruc);
}
To copy to clipboard, switch view to plain text mode
The above also crashes without printing hello, and now there isn't any Qt code left! Seems like a compiler or OS problem.
Bookmarks