Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. Ian Branch

    IDE Fix pack for Rio

    Hi FredS, Excellent. Thank you. So, is the idea to get the IDE to use fastdcc32 in lieu of dcc32, or is it purely for manual calling? If it is intended for the IDE to call, where/how is this achieved? Regards, Ian
  3. FredS

    IDE Fix pack for Rio

    From: https://andy.jgknet.de/blog/ide-tools/ide-fix-pack/ fastdcc There are 2 ways to use fastdcc. 1. Using fastdcc directly Extract the 7z file into your $(BDS)\bin directory. Start fastdcc32.exe as if it was dcc32.exe Start fastdcc64.exe as if it was dcc64.exe Start fastdccaarm.exe as if it was dccaarm.exe 1. Replacing dcc32.exe by fastdcc32.exe (don’t do this if you want to be able to install future RAD Studio/Delphi/C++Builder updates) Extract the 7z file into your $(BDS)\bin directory. Rename dcc32.exe, dcc32.jdbg and dcc32.de/fr/jp to dcc32compiler.exe/jdbg/de/fr/jp. Rename dcc64.exe, dcc64.jdbg and dcc64.de/fr/jp to dcc64compiler.exe/jdbg/de/fr/jp. Rename fastdcc32.exe to dcc32.exe Rename fastdcc64.exe to dcc64.exe Rename fastdcc32Hook.dll to dcc32Hook.dll For XE3 or newer: Rename fastdcc32Hook.dllx to dcc32Hook.dllx (“x” is necessary for Delphi’s copy protection) Rename fastdcc64Hook.dll to dcc64Hook.dll For XE3 or newer: Rename fastdcc64Hook.dllx to dcc64Hook.dllx Start dcc32.exe/dcc64.exe or msbuild.
  4. Today
  5. Ian Branch

    IDE Fix pack for Rio

    Please pardon my ignorance here but I haven't 'deployed' fastdcc before. hat is the process to deploy pls? Do I simply run fastdcc32.exe in the file and like idefixpack it will extract and install itself, and I presume fastdcc32hok.dllx, in the appropriate place? I only install the 32bit stuff. How do I check/confirm it is installed correctly? Regards & TIA, Ian
  6. Yesterday
  7. FredS

    (Mis-)Behaviour of TStringHelper

    LastIndex and DownRange would help but honestly, this is like having to flip your steering wheel when you shift the car into reverse. 🙂
  8. jbg

    IDE Fix pack for Rio

    And another development snapshot is available. This time the functions in StyleUtils.inc (Vcl.Styles) got optimized what makes the UI rendering faster. IDEFixPackD103RegDev.7z fastdccD103vDev.7z
  9. Attila Kovacs

    (Mis-)Behaviour of TStringHelper

    It's a bullsh@t. The doc is a big ~, the mimicked java/.net implementation is a ~, and the parameter name "startIndex" is a ~. It should be called lastIndex as the function name reflects only an index lookup, and not any search in some direction, and mostly not the underlying implementation.
  10. Thanks a lot for your input, Mahdi. I wanted to post working code once it's finished and polished, but that will take a while, as I have to solve other parts of the software first. Your solution is somewhat similar to what I tried, however this is limited to values <= UInt16 (as you noted), whereas Unicode code points range from 0 to $10FFFF. The other issue is that while TUnicodeCategory was in the question, I wanted to implement a general solution, where ranges aren't necessarily as regular (lookup tables for other properties of codepoints where they don't build such nice ranges) or working with the specifically chosen "hash keys" that will not work when your ranges are not as good. Ideally I was looking for an algorithm that automatically searches for the proper hash functions that would yield a reasonably small hash table. Or at least a principle algorithm for it. I'll have a look at your solution again, though, if I need to optimize my approach further.
  11. David Hoyle

    Rio Dark Theme and the structure panel

    This is similar to this QP I raised: https://quality.embarcadero.com/browse/RSP-22221 I don't use the structure pane so I don't know whether that was affected at the time.
  12. I have moved the discussion about the TStringHelper into a separate topic: https://en.delphipraxis.net/topic/738-mis-behaviour-of-tstringhelper/
  13. Attila Kovacs

    Mojave with RAD Studio 10.2.3?

    @Sherlock I mean "Aussteigen, Einsteigen, Geht" 😄
  14. Dany Marmur

    Delphi 5 FOR Loop problem (W10-64bit)

    I suspect the real thing here is that maybe you used a more modern RTL or different project settings so the potential bug became an exception. Turn checking on in debug builds! /D
  15. Silver Black

    10.3.1 has been released

    The new Dev version works perfectly. Thanks!
  16. FredS

    (Mis-)Behaviour of TStringHelper

    Yeah, certainly made clear in the documentation </sarcasm> One would hope that when they copied a DotNet function they could at least copy the DotNet explanation: The search starts at a specified character position and proceeds backward toward the beginning of the string for the specified number of character positions. At this point the claim that it works as expected needs to come with new documentation.
  17. Stefan Glienke

    (Mis-)Behaviour of TStringHelper

    Sorry I meant startIndex + Length(searchText) - 1 because the method simply works as follows: it starts to search at startIndex but does not consider any character in the string after that. That causes it not finding any searched text that extends beyond that index. So as Christian already stated it basically works as if you cut the string after startIndex. So what the documentation is simply missing is the fact that it would not find any occurence that extends past startIndex when you use any of those overloads, that's all.
  18. FredS

    (Mis-)Behaviour of TStringHelper

    True but it is the same as IndexOf, should I now file a bug report for IndexOf? StartIndex specifies the initial offset in this 0-based string where the search starts Because this does not compute: Assert(s.IndexOf('Hello', 38) = s.LastIndexOf('Hello', 38)); I originally looked at the source and also took " startIndex - (Length(searchText) - 1)" into account but here is that math: // 0 19 38 0-based s := 'Hello how are you, Hello how are you, Hello how are you'; // ^ 32 Startindex - (Length('Hello')- 1), searched forward or backward? IMO at this point the claim that it works as expected needs to come with new documentation or a bug fix.
  19. mjwallin47

    Delphi 5 FOR Loop problem (W10-64bit)

    Thanks DummZeuch, that is what I suspected and have started modifying the code as you suggested. The routine contains a lot of code so it is going to take a while. As I mentioned, the original code was written around 1998 (using Delphi 1, believe it or not) and back in 2014 I was contracted to convert the application so something that would compile in W7. I had to replace all of the ReportSmith reports but unfortunately, for one big key report they had used a reporting product called formGenWin which went out of business around 2006. I obtained as much of the source code of the product that was available, the latest in D5. The bank in their wisdom didn't want to spend the time and money to have me re-write the old report to allow later versions of Delphi. However, the code seemed to work without any exceptions until this t time (under MS 7, done on two years cycles) so I suspected an MS update to have something to do with this problem. This problem came up under MS7, I believe, but I am running MS10 on my machine. I will have to check with them to see what O/S they were using when this blowup occurred. Hopefully, I can get the error to disappear by doctoring the code as you suggest.
  20. mjwallin47

    Delphi 5 FOR Loop problem (W10-64bit)

    They are defined as 'Double' inside of an object, so yes they are floating point. If I had done the original code, I would have used integers.
  21. So...this is what my structure panel looks like... I know low contrast seems to be a cool thing these days, but this is ridiculous. After searching QP for a while I didn't find an existing issue for this and created one: https://quality.embarcadero.com/browse/RSP-23756 On a side note, the panel headers are very large and cost quite some space...sadly not configurable.
  22. Sherlock

    Mojave with RAD Studio 10.2.3?

    😄 Nah, AEG ceased to be AEG a long time ago.
  23. Attila Kovacs

    Mojave with RAD Studio 10.2.3?

    öööööööö, if not, you could try an AEG. 😉
  24. Sherlock

    Mojave with RAD Studio 10.2.3?

    Everything worked out fine. Took more than an hour, because after upgrading to 10.14, macOS discovered there is something called 10.14.3 available, and installing that took some time again. Delphi-wise I still can't use the 64Bit iOS-Simulators, but apart from that, everything is A-OK.
  25. It's a VCL issue. I noted another yesterday: if you type text into a property (like caption) that is longer than what fits into the visible width of the OI column the text does not scroll while you type to keep the caret in view.
  26. Never mind, I've found an easier way to find it out. Look at this page : http://docwiki.embarcadero.com/Libraries/Rio/en/Help_of_Previous_Versions This page lets me browse the help file wiki for older Delphi versions (starting with 2010). I simply navigated to the unit of interest for a specific Delphi version, such as this one: http://docwiki.embarcadero.com/Libraries/XE7/en/System.AnsiStrings ... and by simply replacing the "XE7" in the link for older versions, I was able to ascertain that function "searchbuf" first appeared in the Ansistrings unit in Delphi XE4. Problem solved!
  27. You are welcome. We may consider adding some kind of (light) validation to the serialization/deserialization mechanisms. I like to keep MARS lightweight but something like "this field is required" could be safe to implement.
  28. Thank you for all information!! I will test it and let you know! EDIT: Solved!!!! Thank you!
  1. Load more activity
×