Subject | Re: [firebird-support] Re: UDF and Linux, Need help.... |
---|---|
Author | Ivan Prenosil |
Post date | 2004-02-13T13:17:33Z |
> But, the problem is still there.Do you mean the problem is still there even after correcting
memory allocation in the way I told you in previous mail ?
> function kidfromint(var V1, prefix,lengde : integer) : PAnsichar; cdecl; export;You are returning address of long string associated with local
> var
> formatertNR : string;
> begin
> formatertNR := trim(inttostr(V1));
> ...
> Result := PAnsichar(formatertNR);
> end;
variable, that is freed after the function ends, i.e. _before_ Firbird
reads its value.
Ivan