[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is someone can tell me


On Sun, 21 Sept 2025 at 20:31, Lee <t.lee.davidson@xxxxxxxxx> wrote:

> On 9/21/25 3:19 PM, Lee wrote:
> > On 9/21/25 11:27 AM, Fabien Bodard wrote:
> >> Why have I non freed allocation in this project ???
> >>
> >> Thanks
> >
> > I can't get far enough in the execution to even have a non-freed
> allocation. I get an exception at MyQuery:17, "Type mismatch:
> > wanted Object, got String instead"
> >
> > Gambas v3.20.4
>
> I fixed that by testing if TypeOf(Table) = gb.String *first* (same for
> TypeOf({Fields}) = gb.String). But, I do not get any
> non-freed allocations.
>
>
> --
> Lee


That move actually fixes the problem.

I tried it earlier and got the same non freed allocations warning and could
not figure out what it was.
I moved the If conditions around the same as you did and now the bug has
gone.

Respects

BruceS

Follow-Ups:
Re: Is someone can tell meFabien Bodard <gambas.fr@xxxxxxxxx>
References:
Is someone can tell meFabien Bodard <gambas.fr@xxxxxxxxx>
Re: Is someone can tell meLee <t.lee.davidson@xxxxxxxxx>
Re: Is someone can tell meLee <t.lee.davidson@xxxxxxxxx>