Jump to content

FredS

Members
  • Content Count

    418
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by FredS

  1. FredS

    Delphi 10.4.2 first impressions

    I disabled all Experts, and this is reproducible on both Windows 7 and 10.. FYI: The original error is from a larger project and had a bulleted list in the remarks section.. As for clean install; the Win10 is clean the Win7 an upgrade, both 10.4.2 Pro.
  2. FredS

    Delphi 10.4.2 first impressions

    There are no international characters that should be (ANSI): /// <summary> /// Shift+Ctrl+Alt allows access to Custom.Ini /// </summary> /// <remarks> /// </remarks>
  3. FredS

    Delphi 10.4.2 first impressions

    Apparently I have a new marketable skill, crashing the LSP server.. This is unbelievable, can someone verify that these steps are reproducible? New VCL Project Add an event handler for 'KeyDown' Paste this DocInsight text Save Hover your cursor over the implementation of 'KeyDown' exception class : EOleException exception message : Stack overflow. thread $f4c: 514f25e9 +89 xmlrtl270.bpl Xml.XMLDoc 2071 +1 TXMLNode.GetIsTextElement >> stack will be calculated soon unit Unit1; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs; type TForm1 = class(TForm) /// <summary> /// Shift+Ctrl+Alt allows access to Custom.Ini /// </summary> /// <remarks> /// </remarks> procedure FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); private { Private declarations } public { Public declarations } end; var Form1: TForm1; implementation {$R *.dfm} procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin ShowMessage('LSP at its best!'); end; end.
  4. FredS

    Delphi 10.4.2 first impressions

    That and now outright crashes while the 'calculating..' popup appears to freeze up.
  5. An installer overwrote changes I made to a component. During app compile the Error was clearly marked (nice), but after Reverting to my Git version the Error was still there. How does one solve this? Do you have to reload the project again?
  6. FredS

    How to Refresh 10.4.2 CodeInsight

    FYI: Switching configuration back and forth refreshes CodeInsight.
  7. FredS

    Delphi 10.4.2 first impressions

    THEY try and lull you into a sense of security, then when you deploy.. 🙂
  8. FredS

    Delphi 10.4.2 first impressions

    As I read that its for Linux and Browsing path only:
  9. FredS

    How to Refresh 10.4.2 CodeInsight

    Nope, all my Builds are clean. I figured out there was an issue due to that a couple of years ago and built a 'clean.cmd' that is triggered via 'Build Tools' I have not, because that is exactly what I was trying not to do. Sure seems that making a change then undoing it is the only way to force a Refresh at this point..
  10. FredS

    How to Refresh 10.4.2 CodeInsight

    Sure, that's how the Error shows up because it parses all on opening and coding..
  11. FredS

    How to Refresh 10.4.2 CodeInsight

    Come on, don't be so negative.. it only took from D2006 till now to get here with ErrorInsight..
  12. FredS

    How to Refresh 10.4.2 CodeInsight

    Nothing to do with Git. CodeInsight correctly marked an error I updated the file at fault, the IDE asked if it should reload that file - OK Error still marked Did a Build all Error still marked How to refresh CodeInsight?
  13. Just wait until patches are delivered via DOS 🙂
  14. After copying over bds.exe I got as far as attempting to use Build Groups but that failed with: Module not found: dcc32270.dll Once again a copy from an Online install fixed that.. C:\>dir /s dcc32270.dll Volume in drive C is Windows Volume Serial Number is 4437-4848 File Not Found
  15. FredS

    Delphi 10.4.2 first impressions

    10.4.1 wasn't compatible so neither will 10.4.2
  16. FredS

    Delphi 10.4.2 first impressions

    10.4.1 DCUs are compatible with 10.4.2, else I couldn't have built my projects..
  17. FredS

    Delphi 10.4.2 first impressions

    Yes, that was done a couple of months ago when I had GetIt issues.. But that was an RDP mapped drive not a standard one which with a 6 Gig file could be the issue. So far all testing looks pretty good, an exception of API not found during startup (Windows 7) but compile speed is down to Rio speed again and CodeInsight seems to be working... including.. gulp.. ErrorInsight 🙂
  18. Same here just now using the Off-line installer on Windows 10. The only AV is the M$ one.. and definitions where updated less than an hour ago. --------------------------- Setup --------------------------- Unable to execute file: C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\bds.exe CreateProcess failed; code 2. The system cannot find the file specified. --------------------------- OK ---------------------------
  19. Right, it will simply NOT inline that function and that means there is a Jump.. inline is faster.. ..more on those for Rio
  20. FredS

    Delphi 10.4.2 first impressions

    Not sure yet.. Tried using the GOF file with the installer from a mapped drive and got a tsclient error. So that doesn't work, was never tested or maybe its because I still use Windows 7..
  21. FredS

    isFileInUSe

    Remembered I added this for a self updater. But I can't say its fully tested yet the remark sounds correct: class function TDirectoryHelper.HaveControlledFolderAccess(const Path: string): Boolean; {$REGION 'History'} // 04-Jan-2019 - 'Controlled Folder Access' won't return an error nor an Invalid Handle // those checks are here in case the path is bad or doesn't exist. // The only indication is that the file is not created {$ENDREGION} var LFile: string; h: THandle; begin LFile := TPath.Combine(Path, TGuid.NewGuid.ToString + PERIOD + TGuid.NewGuid.ToString); h := CreateFile(LFile.ToPchar, GENERIC_READ or GENERIC_WRITE, 0, nil, CREATE_NEW, FILE_ATTRIBUTE_HIDDEN or FILE_FLAG_DELETE_ON_CLOSE, 0); if (h = INVALID_HANDLE_VALUE) then Exit(False); Result := FileExists(LFile, False); CloseHandle(h); end;
  22. FredS

    isFileInUSe

    For protected folders you are fighting the builtin security system.. it's like a builtin Firewall, you only know your call didn't work and most likely froze you never get an explanation why..
  23. Vielleicht Interessant: Zum Corona Quiz
  24. FredS

    Create a Delphi Dll and load it with DllMain

    I just ran the compiled demo for InjectAPI and that still worked on a freshly installed Windoze 20H2. But you can't have a DLL with forms only Kernel32 and User32 API. This means you will need to hack some communication with an app. But let me warn you, I was surprised that it worked especially since the Binaries where not signed. This is oodles more restrictive today than it was 20 years ago 🙂 hope that helps
  25. FredS

    Error E2010 incompatile types are same types

    Check your paths, sometimes Delphi starts comparing same named DCUs built with different compiler directives.
×