T
T
tschin2017-01-12 01:13:11
Qt
tschin, 2017-01-12 01:13:11

Why does the program crash into SIGSEGV immediately after entering the function?

Hello! I am engaged in code adaptation from Delphi to C++.
Now the program falls into SIGSEGV immediately after entering the function. I.e

void function()
{

}

falls out on an opening curly brace.
Why is this happening? Can this be due to the number of arguments passed, because 18 arguments are passed to this function (yes, because it was taken from Delphi and redone in C ++)?
Passed to the function are ( QString, QString, int, int, QString, int, int, bool, QString, int, double, int, int, int, int, int, int, QString); All arguments are initialized.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
tschin, 2017-01-12
@tschin

rhaport in a comment to the question suggested that it could be a stack overflow. And indeed it is! made the function's local variables static, as a quick fix, the crash stopped!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question