Valgrind is also a nice tool. For each malloc() that has not been free():d,
it will list how the runtime stack looked like when the unfreed memory
chunk was allocated. If you use it with Gambas, you might need to disable
the memory pooling system Gambas uses, otherwise you can get strange
results...

/Emil

2012/3/11 Jussi Lahtinen <[email protected]>

> Thanks!
>
> Jussi
>
>
> On Sun, Mar 11, 2012 at 17:03, Emil Lenngren <[email protected]
> >wrote:
>
> > The interpreter has support for debugging memory using some flags. Then
> you
> > can see in which functions borrows/releases are made. Look in the source
> > code what the flags are and compile gbx with them enabled ;)
> >
> > /Emil
> >
> > 2012/3/11 Jussi Lahtinen <[email protected]>
> >
> > > Hi!
> > > Is it possible to have more information about non freed allocations?
> > > Pointer name, object where allocation is done or something that would
> > help
> > > to find the problem?
> > >
> > > Since I don't think I have any non freed allocations...
> > >
> > > Jussi
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > > Virtualization & Cloud Management Using Capacity Planning
> > > Cloud computing makes use of virtualization - but cloud computing
> > > also focuses on allowing computing to be delivered as a service.
> > > http://www.accelacomm.com/jaw/sfnl/114/51521223/
> > > _______________________________________________
> > > Gambas-user mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/gambas-user
> > >
> >
> >
> ------------------------------------------------------------------------------
> > Virtualization & Cloud Management Using Capacity Planning
> > Cloud computing makes use of virtualization - but cloud computing
> > also focuses on allowing computing to be delivered as a service.
> > http://www.accelacomm.com/jaw/sfnl/114/51521223/
> > _______________________________________________
> > Gambas-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to