Jump to content

Lars Fosdal

Administrators
  • Content Count

    3303
  • Joined

  • Last visited

  • Days Won

    110

Everything posted by Lars Fosdal

  1. You have to make sure you have no values in the release or debug options that override the "all config" values.
  2. Lars Fosdal

    30 % and 35 % discount on Delphi

    Being on maintenance sort of makes these mails less interesting. On the other hand - I am starting to wonder if we would be better off with the pure Delphi Enterprise, instead of the RAD Studio Enterprise. We don't use the C++ part, and since they dropped the .NET bits - there is little stuff of interest in RAD Studio. I wonder if it is possible to downgrade?
  3. Lars Fosdal

    Project load error

    Have you tried using a different editor to see if it is possible to remove the offending character?
  4. Since none of us are mind readers, a description of what you want to achieve could be useful. What action should lead to what effect, and when?
  5. Lars Fosdal

    RAD Studio 10.3.3 now available

    That is unfortunately correct. As mentioned above - if you avoid creating Json that embed container data outside your control, you will avoid such issues. Json as per example above { "result": [{ "Id": 10, "Name": "Einlagern" }, { "Id": 30, "Name": "Umlagern" }, { "Id": 400, "Name": "Kundenbarcode" }, { "Id": 100, "Name": "St\u00FCckgutverladung" }, { "Id": 400, "Name": "NVE zu Kundenbarcode" }, { "Id": 0, "Name": "" }, { "Id": 0, "Name": "" }, { "Id": 0, "Name": "" } ] }
  6. Lars Fosdal

    QP suggestion: GetIt cache

    https://quality.embarcadero.com/browse/RSP-26999 Follow link and vote if interested.
  7. Lars Fosdal

    RAD Studio 10.3.3 now available

    Duh! It's the TStringList that has changed... To avoid situations like these, you should build Json that does not embed information that belongs to the container. F.x. type TStatus = class private FId: Integer FName: String; public constructor Create(const aId: Integer; aName: String); function DisplayText: string; property Id: Integer read FId write FId; property Name: String read FName write FName; end; TStatusArray = TArray<TStatus>; constructor TStatus.Create(const aId: Integer; aName: String); begin Id := aId; Name := aName; end; function TStatus.DisplayText: string; begin Result := Id.ToString + '|' + Name; end; function tmyServerMethods.Load_Scanning_Functions(vuserid:longint):TStatusArray; var i:integer; begin result := []; // data is a query ... for i:=1 to vdata.recordcount do begin result := Result + [TStatus.Create(vdata.fieldbyname('statusid').asinteger, vdata.fieldbyname('statusname').asstring)]; vdata.next; end; end;
  8. Lars Fosdal

    RAD Studio 10.3.3 now available

    That was a very weird difference. It looks like the types of Fencoding and FDefaultEncoding has changed. Can it be that the type you intend to use is being "replaced" by type with the same name, due to a scope issue?
  9. Lars Fosdal

    RAD Studio 10.3.3 now available

    Can you describe in what way the Json encoding differs? Json examples would be good! Even better would be small self-contained compilable example that demonstrates the difference between 10.2.x and 10.3.x
  10. Lars Fosdal

    Delphi 10.3.3 CE IDE issues

    Doesn't GetIt die horribly if you disable theming, or did they fix that?
  11. Lars Fosdal

    Dicom VCL Library

    http://codeverge.com/embarcadero.delphi.tools/dicom-viewer-and-dicom-components/1049808
  12. Lars Fosdal

    Debugger in 10.3.3 is useless :'(

    You can pause the VMs so that they use zero CPU. Unpausing is near instant. They will still use memory, though.
  13. Lars Fosdal

    Hebrew in mail

    The devil is indeed in the details.
  14. Lars Fosdal

    Debugger in 10.3.3 is useless :'(

    VirtualBox is really nice for making test VMs for Windows and Linux. Install your favorite Windows version in a clean VM. Hotfix it and adapt it to your liking. Clone it. Install 10.3.2. Snapshot it. Clone the original again. Install 10.3.3. Snapshot it. Voila! Side by side comparison is now possible.
  15. Lars Fosdal

    Changing label text in thread leads to weird display

    If I had to use Synchronize, I'd only use it to trigger an update in the UI. TThread.Synchronize(nil, procedure begin RefreshTimer.Enabled := True end); and perform the actual update in the timer event handler. I have had so many bad side effects with Synchronize, that I simply prefer to not use it at all.
  16. Lars Fosdal

    Sourcetrail support for Delphi

    Delphi.Owner; 😛
  17. Lars Fosdal

    RAD Studio 10.3.3 now available

    I tested building all our code, and luckily no surprises there. Delphi 10.3.3, TMS 9.03, Eurekalog 7.8.1. Actually running the code is next 😛
  18. https://eurekalog.blogspot.com/2019/11/black-friday-and-cyber-monday-sale-2019.html If you deploy Windows apps to clients, tools like Eurekalog and MadExcept are indispensable for information about what goes wrong and where, when your users get an unhandled exception. Disclaimers: We use Eurekalog. We do not get referral discounts.
  19. Lars Fosdal

    RAD Studio 10.3.3 now available

    That makes me assume there will be no new Community Edition until 10.4.0 I was wrong about this.
  20. Lars Fosdal

    RAD Studio 10.3.3 now available

    Was there a 10.3.1 or 10.3.2 Community Edition?
  21. Lars Fosdal

    Default for published property

    Low(Integer) - assuming 32-bit Integer - will always be -2,147,483,648 What value were you expecting to see? Zero? Then you need to use Default 0 - or type Cardinal instead of Integer. Note that using a Cardinal can introduce challenges with regards to math operations that may cause a signed result such as (Small.Minvalue - Big.MinValue) < 0
  22. My preferred way of dealing with sub-tasks is to provide a "mailbox" i.e. some sort of container, like a queue, array or list, for them to insert their results in. The main thread can either poll the mailbox periodically, or you could use a message or signal to initiate the polling whenever the container has content added.
  23. Lars Fosdal

    Cross-platform solution to forcefully end a thread

    Our servers rarely run with less than 25 concurrent threads. We also have threads that can't run in parallel and a scheduler in place that ensures that it doesn't happen. Have we had problems? Sure, when we broke the rules. Threads are not more dangerous or hard to use than any other field of development you are introduced to. The hardest thing about multithreading is to adapt your thinking to asynchronous events, instead of sequences.
  24. It seems that the French has a "times 20" system that is somewhat similar to the Danes.
  25. Lars Fosdal

    Triggers from Bluetooth Beacons

    For my last questions - I was wondering whether removing a beacon from the manager, or stopping/starting the manager helped for redetecting the first detected beacon?
×