[Interest] Crash when creating QNetworkAccessManager in qt 5.14.x
coroberti .
coroberti at gmail.com
Tue Feb 4 16:56:31 CET 2020
On Tue, Feb 4, 2020 at 5:43 PM Thiago Macieira
<thiago.macieira at intel.com> wrote:
>
> On Tuesday, 4 February 2020 01:45:27 PST coroberti . wrote:
> > Sorry, I meant allocation of QNetworkAccessManager object
> > by new operator (dynamic) versus its allocation on function scope (static).
>
> Instead of static, please use automatic storage (no static, no new). Create it
> in the stack, after QApplication.
>
Yes, "automatic" is the right word.
Philippe, if "automatic" on stack instance resolves your issue
and the crash when you are doing allocation by new remains,
it's a memory issue.
Try to look at the places where you are doing deleteLater(),
perhaps with the reply objects.
Take care,
Robert
More information about the Interest
mailing list