12-06-2012 05:55 AM
hi every one,
when i run my application then i get a message on console
free malloc object that is not allocated:../../dlist.c:1078
and my application is forced close i dont know what is it please help me.
02-24-2013 12:37 PM
mohdfarhanakram wrote:
hi every one,
when i run my application then i get a message on console
free malloc object that is not allocated:../../dlist.c:1078
and my application is forced close i dont know what is it please help me.
since today I'm getting
free malloc object that is not allocated:../../dlist.c:1096
my app is running fine till the end and just before exit() I'm getting this error
have not found out the reason yet
02-25-2013 03:12 AM
02-25-2013 03:24 AM
simon_hain wrote:
we also have the same issue and were unable to resolve it so far.
due to the message i suspect the list implementation to have an issue with cleaning up, maybe the deconstructor is called twice internally.
good to hear that I'm not alone
in this case it also happens without creating/opening a Page with ListView
it's a NavigationPane
perhaps we have to wait for next OS
I have only tried on 10.0.9.xxx SDK from 10.1 Beta IDE
have you tried with Q10 Simulator and 10.10. ?
02-25-2013 03:38 AM
02-25-2013 04:30 AM
simon_hain wrote:
no, i try to avoid simulators wherever i can, guess it must be some history with bb java development
same for me ;-)
02-25-2013 04:50 AM
what i noticed is that when clean my project the message didn't return ( and indeed i think this is a internal error )
02-25-2013 04:52 AM
xtravanta wrote:
what i noticed is that when clean my project the message didn't return ( and indeed i think this is a internal error )
already did this
clean project didn't help
02-25-2013 07:59 AM
just tested with Q10 Simulator running 10.1 OS
used same SDK 10.0.9.2372
same error happens on 10.1 but exit is fast - no delay noticable
taking a look at the logs:
Z10 Device, 10.0.9: .core size 89'812'992
Q10 Simulator, 10.10: .core size only 749'568
so I really believe this error is an internal one and I spent my sunday for nothing
aaah no: looking for errors always means learning new things - in this case about the .core files Peter Hansen mentioned in the other thread ;-)
03-17-2013 11:40 PM
I just spent the last two hours chasing this error down, here's what the problem was for me:
I was using my class definition to allocation my GUI objects, here's a simple example to illustrate (this probably won't compile):
class app : public QObject
{
Q_OBJECT
public:
app();
ListView list;
ImageView img;
}Then I was adding these objects (list, img) list this:
container->add(&list);
container->add(&img);
class app : public QObject
{
Q_OBJECT
public:
app();
ListView *list;
ImageView *img;
}
....
list = new ListView();
img = new ImageView();
container->add(list);
container->add(img);
When I'd shutdown the application I'd get the "free malloc object" error message.
By switching to definiting object pointers in the class definition and instantiating the objects with the new operator in the code before using the object I managed to avoid the shutdown error messages.
I'd love to hear a technical explanation as to why this is happening...
I certainly hope this helps avoid some tedius debugging for others.
Cheers,
Eric