[Gambas-user] getting warning when quitting running application

Bruce Steers bsteers4 at gmail.com
Wed May 11 18:12:09 CEST 2022


On Wed, 11 May 2022 at 16:59, Charles Bukowski <
charlesbukowski.italy at gmail.com> wrote:

> Hi, I am using quit command to end an application.
> But I get the following from the ide console  :
> gbx3 [4289]: warning: 1 allocation(s) non freed.
> Is there a way to understand what is allocating resources and destroy it?
> Or can this warning being ignored?
> thx
>

It will probably be some kind of object that was created and needs to be
destroyed.

Are you using Quit because the application won't exit cleanly otherwise?
(that's never really the best way to go)

Make sure all file handles / timers / processes are stopped/killed

Add a few object killing things to your Form_Close() event like..

ThisObjectCreated = Null
ThisOtherObjectCreated = Null

without seeing your code it's hard to guess what it could be.

As for an actual way to track down exactly what it is there may be a debug
option but i forget it.

BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220511/b53c1d29/attachment.htm>


More information about the User mailing list