Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Malloc Check Failed while porting Qt app

Looks like your app received KILL signal.

New Contributor
Posts: 8
Registered: ‎11-02-2012
My Device: Blackberry Playbook
My Carrier: n/a

Re: Malloc Check Failed while porting Qt app

Resolved it..... not sure why it worked.


The error line, which occurs repeatedly but the crash occurs on the 3rd/4th iterarion, was:

char *data = new char[len+1];

 Pretty standard right? Anyways, replaced it with the following and it works like a charm:

char* data = (char*)malloc(sizeof(char) * (len+1));