Attempting to read past end of strings

From: John Tserkezis (jt_at_techniciansyndrome.org.invalid)
Date: 03/26/04

  • Next message: Jeremy Collins: "Re: Attempting to read past end of strings"
    Date: Fri, 26 Mar 2004 23:50:36 +1100
    
    

      I have a whole bunch of code written for pascal that I had hoped I can use
    under delphi.

      Something like:

      string1 := 'abcd';
      string2 := string1[10];

      under pascal, string2 = '' under delphi, it crashes.

      I've googled, but could only find instances of "don't do that".

      Is there an easy way around it, or do I have to rewrite the code? A lot of
    the pascal code I'm using uses, and relys on the fact that it returns a null.

      I was hoping I wouldn't have to rewrite.

    -- 
    Linux Registered User # 302622                         <http://counter.li.org>
    

  • Next message: Jeremy Collins: "Re: Attempting to read past end of strings"

    Relevant Pages

    • Re: Best Blog Entry in Years
      ... the customers tell me they want to run in a safe environment as .NET code. ... Mixed mode compiler does not help here - and I do not want to rewrite all ... There is no different paradigm between native code and .NET code ... Strikes me as counter intuitive - if you have a large code base in Delphi ...
      (borland.public.delphi.non-technical)
    • Re: Delphi job market - observation
      ... > it is not just .Net conversion but to VS conversion. ... The C standard is to just rewrite ... Delphi 7 code. ... > - cost - for some reasons it is appear that it is smaller cost to do thing ...
      (borland.public.delphi.non-technical)
    • Re: *sigh* how to continue with clumsy code?
      ... Object Pascal used in Borland Delphi isn't it? ... and that FPC does not support class methods of records. ... for-loops are only for numeric types. ... Rewrite the existing code and afterwards try to finish the game? ...
      (rec.games.roguelike.development)
    • Re: VB coverage in new online mag - VB6 or VB.NET?
      ... They are, at best, an insult to VB developers. ... Which is why a lot of long-time VB shops are considering Delphi. ... > to rewrite code if you've been using lots of API calls. ... had MS made a serious attempt to provide a transition there'd still ...
      (microsoft.public.vb.general.discussion)
    • Re: Delphi to Visual Studio Conversion Project
      ... It's a complete rewrite too. ... We are actually in the middle of a complete rewrite of a Delphi app in C#. ... The rewite has allowed them to separate out database access into a persistence layer, so now they can accomodate clients who use differing database backends or need to integrate our software into their existing systems; it also allows the use of a multi-tier strategy as the object broker can be separated out onto a separate server from the database. ... They also now have a separate presentation layer, allowing them to be able to design differing UIs like Winforms, WPF or web-based without touching their business logic at all. ...
      (borland.public.delphi.non-technical)