Jump to content

Vandrovnik

Members
  • Content Count

    583
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. Vandrovnik

    Delphi ignores path to unit in .dpr

    In .dproj file, there is also full path to non-existent file: <DCCReference Include="C:\Program Files (x86)\Embarcadero\Studio\20.0\source\IBX\IBX.IBStoredProc.pas"/>
  2. Vandrovnik

    Min & Max

    I have also found this comparing of the performance: https://github.com/xiadz/cmov
  3. Vandrovnik

    Min & Max

    Thanks, voted... My knowledge of assembler is frozen before Pentium instruction set...
  4. Vandrovnik

    Min & Max

    Is it possible to implement Min or Max without conditional jump?
  5. Vandrovnik

    problem with file attributes

    You are writing to .xlsx and trying to query/open .xls...
  6. They have added ResStringCleanupCache to System.SysUtils. When I call it when loading another language module, it seems to work OK, too. { ResStringCleanupCache cleanups internal cache of loaded resource strings. Useful for applications dynamically changing resource DLL's. } procedure ResStringCleanupCache; "Documented" here: http://docwiki.embarcadero.com/Libraries/Sydney/en/API:System.SysUtils.ResStringCleanupCache
  7. In System.SysUtils: procedure InitResStrings; begin InitializeCriticalSection(ResStringCritSect); AddModuleUnloadProc(ResStringModuleUnloadProc); LoadResStringFunc := @ResStringLoad; end;
  8. Hmm, when I use this, it seems to work again: LoadResStringFunc:=nil;
  9. I am attaching test project, it contains prepared .DEU file but no .exe file. In PSC.pas in TPSCForm.FormShow, resourcestring is assigned to button's caption, which is not working for me. Test66.zip
  10. Install it 🙂 Or install AutoHotKey 🙂
  11. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    Could you make a copy of the project and then try to shrink the project to find out, which unit is causing it?
  12. For me it works poorly - often it takes really long time (5-10 s between Ctrl+click and moving to the declaration, but there is no indication that "Delphi is thinking about it"), or it does not work at all.
  13. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    If you do not find a real solution/reason and changing items in Library path works, you can use an app such as AutoHotKey and automatize changing these paths in Delphi dialog, so that you just press a keyboard shortcut and wait a while, while keyboard/mouse strokes are replayed.
  14. If memory taken by whole strings is not a problem, I would use whole strings. (Or lossless compression of this string.) Do you include parameters into this hash? Because SELECT a.Value FROM Table a WHERE (a.Id=:Id) can produce different results for different parameters.
  15. Till yesterday I did not notice there is WriteBuffer/ReadBuffer - I started to use Write/Read long long time ago... Well, time to change old bad habbits 🙂
  16. When tMemoryStream is not able to allocate more memory during a write, it raises an exception by itself in TMemoryStream.Realloc. With other streams, I think it would be easier to have another class, say tCheckedStream, which would override .Read and .Write methods and raise an exception, when it cannot write data or read enough data (you can pass another stream to its constructor, so it can be used with any other stream).
  17. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

    Have you tried without MMX, GExperts etc.?
  18. Vandrovnik

    Delphi10.4.2, Theme, closing Modal dialog

    It is already reported: https://quality.embarcadero.com/browse/RSP-33140
  19. Vandrovnik

    Annoying IDE behavior changes in 10.4.2

    I can confirm both 1 a) and 1 b). 10.4.2 installed as update over 10.4.1 (uninstall automatically done by installer), keeping settings, did not use Migration Tool.
  20. Vandrovnik

    Object Inspector issue in 10.4.2??

    I have seen it too (monitor @ 125 %).
  21. Vandrovnik

    Can Delphi randomize string 'Delphi'?

    No, you cannot assume this.
  22. Can you create a reproducible small example? I have tried similar code and blue dots are present and debugger stops on them on breakpoint.
  23. Vandrovnik

    Can Delphi randomize string 'Delphi'?

    Maybe the reason is that you are using (probably 32bit) pseudo-random numbers, not true random numbers. These 32 bits create 4.29e9 seeds for random number generator, while 6 letters from your 52 letters is 19.77e9 combinations. In fact you could try to set the seed to all numbers from 0 to 255^4-1 and see, whether it creates desired result. If you have 64bit random number generator, it could reach the goal, I guess.
  24. Vandrovnik

    Delphi 10.4.2 first impressions

    You can use: TDummyDict = class(TDictionary<String, TDummy>); Then Ctrl+click works as expected. Content of tList<> - I have tried and it seems it works, or is it something else?
  25. Vandrovnik

    Delphi 10.4.2 first impressions

    In Windows 7, TLS 1.2 must be enabled (do not know how, but there was a note about it for Windows 7).
×