Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2002-07

Re:�Problem�with�ANSI-Strings

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Philipp Lucas
Show quoted text 20 lines
Date:�Fri,�5�Jul�2002�10:28:35�+0200�(W.�Europe�Daylight�Time) From:�Michael�Van�Canneyt� 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
Lee, John

for some reason this last email from you was difficult to read, altho' the previous one was ok! However, as you saw from his email, Michael seems to think it is a compiler fault... so it'll probably get fixed in a new snapshot of the compiler quite soon...so please be patient... Regards John

Earlier message 13 lines
-----Original Message----- From: Philipp Lucas Sent: Friday, July 05, 2002 13:01 To: Subject: Re: [fpc-pascal]Problem with ANSI-Strings This message uses a character set that is not supported by the Internet Service. To view the original message content, open the attached message. If the text doesn't display correctly, save the attachment to disk, and then open it using a viewer that can display the original character set. This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.