Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7502193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:46:48+00:00 2026-05-29T20:46:48+00:00

Something has changed with System.Str in Delphi XE2. The following procedure : procedure someProcedure;

  • 0

Something has changed with System.Str in Delphi XE2. The following procedure :

procedure someProcedure;
var 
  E:double;
  outString:string;
begin
  E:=-1.7E+308;
  Str(E:i:j, outString);
end;

Raises an access violation

(exception class $C0000005, access violation at 0x00407318: read of address 0x30303028)

in Delphi XE2 where ‘i’ and ‘j’ are whatever integers. This same code works fine in Delphi 2010 and returns outString = ‘-1.7E+0308’. Similar code is used in a few of the TurboPower Orpheus components and it causes the entire IDE to crash on a BEX error.

This is in Win7 64-bit. Any ideas?

Edit : extra info

This seems to happen only with large negative numbers. Str seems to generate long strings which break when they exceed ~130 characters.

Note : this does not break when using only width (where i = some width)

procedure someProcedure;
var 
  E:double;
  outString:string;
begin
  E:=-1.7E+308;
  Str(E:i, outString);
end;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:46:51+00:00Added an answer on May 29, 2026 at 8:46 pm

    It’s clearly a bug with the handling of large magnitude negative numbers. Positive numbers are handled fine. If you can intercept the calls to Str then you could make sure that you only ever call Str passing positive numbers and then prefix the - yourself.

    I have submitted the bug to Quality Central: QC#103436.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had this working(ish) before, but apparently something has changed on my system and
I am not sure if something has changed in the iPhone SDK 3.0 but
Our base Masterpage has something like the following <head runat=server> <title></title> <script type=text/javascript src=<%=
I have a WCF service that has been working perfectly, and something has changed
I haven't used Ruby for a while on my Mac. Obviously something has changed
I'm working on VS 2005 and something has gone wrong on my machine. Suddenly,
I'm trying to use Boost regex to see if something has an integer in
Something that has always bugged me is how unpredictable the setTimeout() method in Javascript
Something that has been troubling me for a while: The current wisdom is that
Something that has piqued my interest is Objective-C's BOOL type definition. Why is it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.