Jump to content

Lars Fosdal

Administrators
  • Content Count

    3421
  • Joined

  • Last visited

  • Days Won

    113

Lars Fosdal last won the day on August 23 2024

Lars Fosdal had the most liked content!

Community Reputation

1800 Excellent

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

28495 profile views
  1. Lars Fosdal

    Pointer arithmetic question

    This attitude is inappropriate. Access to these forums is a privilege, not a right. Do not abuse it.
  2. I would recommend porting manually by hand after researching which components need to be replaced. If you separate the biz logic from the UI, that would not be as complicated as trying to do a UI to UI remapping.
  3. Lars Fosdal

    What new features would you like to see in Delphi 13?

    @shineworld That is bigger than "fairly large", I'd say. May I ask how much of the code is generated vs hand-crafted?
  4. Lars Fosdal

    Anybody have Delphi running in a VM on M-series Mac?

    I agree with @Thijs van Dien. Rebuild your VM on Windows 11 for ARM under Parallels. Works fine on my MBP M1 Pro.
  5. Lars Fosdal

    Why doesn't this work?

    Why won't this work with inline vars? Is it the ListBox.Items.Add that doesn't copy the Couple string?
  6. Lars Fosdal

    Switch from JCL to EurekaLog

    For our apps, we use EL to capture the exception, then log them both to a local log file (debug out type) and to our database. As mentioned, it is timewise expensive, so we take care to not use exceptions for normal flow control.
  7. It is at least interpreted correctly with regards to type and type size. 32-bit SizeOf(Type(1)) 1 Byte 1 UInt8 1 Int8 1 ShortInt 2 Word 2 Int16 2 UInt16 2 SmallInt 4 FixedInt 4 FixedUInt 4 Integer 4 Cardinal 4 NativeInt 4 NativeUInt 8 Int64 8 UInt64 64-bit SizeOf(Type(1)) 1 Byte 1 UInt8 1 Int8 1 ShortInt 2 Word 2 Int16 2 UInt16 2 SmallInt 4 FixedInt 4 FixedUInt 4 Integer 4 Cardinal 8 NativeInt 8 NativeUInt 8 Int64 8 UInt64 program TypeCastSizeOf; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils; begin {$ifdef CPU32Bits} Write('32-bit'); {$else} Write('64-bit'); {$endif} Writeln(' SizeOf(Type(1))'); try try Writeln(SizeOf(Byte(1)),^I'Byte'); Writeln(SizeOf(UInt8(1)),^I'UInt8'); Writeln(SizeOf(Int8(1)),^I'Int8'); Writeln(SizeOf(ShortInt(1)),^I'ShortInt'); Writeln(SizeOf(Word(1)),^I'Word'); Writeln(SizeOf(Int16(1)),^I'Int16'); Writeln(SizeOf(UInt16(1)),^I'UInt16'); Writeln(SizeOf(SmallInt(1)),^I'SmallInt'); Writeln(SizeOf(FixedInt(1)),^I'FixedInt'); Writeln(SizeOf(FixedUInt(1)),^I'FixedUInt'); Writeln(SizeOf(Integer(1)),^I'Integer'); Writeln(SizeOf(Cardinal(1)),^I'Cardinal'); Writeln(SizeOf(NativeInt(1)),^I'NativeInt'); Writeln(SizeOf(NativeInt(1)),^I'NativeUInt'); Writeln(SizeOf(Int64(1)),^I'Int64'); Writeln(SizeOf(UInt64(1)),^I'UInt64'); except on E: Exception do Writeln(E.ClassName, ': ', E.Message); end; finally Readln; end; end.
  8. Lars Fosdal

    SSL of this site

    This has been resolved.
  9. @RDP1974 I deleted the edited empty post. Was that the one you wanted to remove?
  10. Lars Fosdal

    Buying a mini pc to install Delphi

    If you need to produce executable code for MacOS and iOS - you need stuff that is NOT out-of-warranty, i.e. the Mx generation of CPUs. I built all my computers myself from 1984 until 2008. After that, it has been laptops and mini PCs. I bought an MBP M1 Pro when it came out, and it and later models using the Mx platform, cannot be upgraded. You have to pay the Apple tax on more memory and more storage.
  11. Lars Fosdal

    Buying a mini pc to install Delphi

    Average consumers of hardware, then. Not all programmers tinker with hardware. And, if they bought a newer Apple device, they wouldn't typically be able to do so, as not all programmers are handy with soldering tools. Those of us that are, would probably be reluctant to void the warranty of their new devices.
  12. Lars Fosdal

    Buying a mini pc to install Delphi

    Intel Macs are going the way of the Dodo. It is all about ARM for Apple now. The Apple Tax refers to the premium you pay if upgrading from the base spec of an Mx based device. The cost is ridiculous. You could buy a second device for the price of the upgrades. Edit: ...and your average consumer cannot upgrade the device by themselves.
  13. Lars Fosdal

    Problems with EurekaLog

    I don't use the EL dialog nor do I capture screenshots. @Attila Kovacs But, in EL Options, under dialog: it looks like you can make screenshots mandatory? Disclaimer - I haven't tested it. Edit: Well, reading the docs says it doesn't work that way - and that there are GDPR pitfalls if not asking for consent. https://www.eurekalog.com/help/eurekalog/index.php?bug_report_screenshot.php
  14. Lars Fosdal

    Buying a mini pc to install Delphi

    Same reasons that Anders mentioned. Also, Amazon has a brutal grip on the market, and is killing off the competition. For books, I've opted to pay more and order them from a local bookstore.
  15. Normally, it would be by editing the first post. I modified the topic for you.
×