[Gambas-user] Circular references and allocations non freed?

Laurent Carlier lordheavy at ...512...
Mon Apr 18 17:51:38 CEST 2005


Le Samedi 16 Avril 2005 15:52, Thomas Mathiesen a écrit :
> GoVPN (0.2-2) spits out this when I exit:
>
> WARNING: circular references detected
> frMain (1)
> WARNING: 60 allocation(s) non freed.
>
>
> I am using QUIT.. so it should clean up all variables, shouldn't it?
> I have no clue what circular references mean..?
>
> Here's the exit code:
>
> PUBLIC SUB btExit_Click() 'Same for form_close
>
>    SaveConfig 'Save settings
>    TRY VPNProcess.kill 'Try to kill VPN process
>    IF ERROR THEN addtodebug("Tried to kill VPNProcess, but no connection
> found.") 'If no process, just add a note to debug listview
>    QUIT 'Cleans up?!
>
> END
>

Use ME.close instead of Quit :)

-- 

Laurent Carlier
jabber : LordHeavy at ...943...




More information about the User mailing list