�[fpc-pascal]Problem�with�ANSI-Strings
Philipp Lucas
phlucas at online-club.de
Fri Jul 5 14:00:57 CEST 2002
fpc-pascal-admin at deadlock.et.tudelft.nl wrote on 05.07.02 12:00:06:
>Date: Fri, 5 Jul 2002 10:28:35 +0200 (W. Europe Daylight Time)
>From: Michael Van Canneyt <michael.vancanneyt at wisa.be>
>Subject: Re: [fpc-pascal]Problem with ANSI-Strings
>On Fri, 5 Jul 2002, Philipp Lucas wrote:
>> PROGRAM t;
>>
>> FUNCTION STR_neu(w:WORD):STRING;
>> VAR d:STRING;
>> BEGIN
>> STR(w,d);
>> exit(d);
>
>This line is the problem. It's a compiler bug !
>
>replace this with
> str_neu:=d;
>and it will work fine.
>
>To the compiler guys: It's really a bug, it should be fixed somehow.
>There is an access violation when using the exit() with ansistrings.
Thank you for this information.
Is there an easy fix that I can apply to the compiler code to remedy
this?
--
Philipp Lucas
phlucas at online-club.de
More information about the fpc-pascal
mailing list