Jump to content

Vandrovnik

Members
  • Content Count

    523
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. In System.SysUtils: procedure InitResStrings; begin InitializeCriticalSection(ResStringCritSect); AddModuleUnloadProc(ResStringModuleUnloadProc); LoadResStringFunc := @ResStringLoad; end;
  2. Hmm, when I use this, it seems to work again: LoadResStringFunc:=nil;
  3. 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
  4. Install it 🙂 Or install AutoHotKey 🙂
  5. 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?
  6. 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.
  7. 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.
  8. 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.
  9. 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 🙂
  10. 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).
  11. Vandrovnik

    Several F2084 Internal Error on Delphi 10.4.2

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

    Delphi10.4.2, Theme, closing Modal dialog

    It is already reported: https://quality.embarcadero.com/browse/RSP-33140
  13. 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.
  14. Vandrovnik

    Object Inspector issue in 10.4.2??

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

    Can Delphi randomize string 'Delphi'?

    No, you cannot assume this.
  16. Can you create a reproducible small example? I have tried similar code and blue dots are present and debugger stops on them on breakpoint.
  17. 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.
  18. 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?
  19. 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).
  20. type tTest=packed record b: byte; d: double; // not aligned end; var t: tTest; Sometimes I have to use packed record to read old data from files.
  21. I am not sure - in the directory C:\Program Files\Firebird\Firebird_2_5\WOW64, I do not have msvcp80.dll and msvcr80.dll (these were used in 2.5.9). I would try to put them there (32bits). Also, the application which tries to load fbclient.dll - is it 32bit? That is my "favourite" mistake, mismatch between 32 and 64 bits.
  22. fbclient.dll usually depends on other dlls (like msvcp100.dll, msvcr100.dll in FB 3.0), are they present?
  23. From 18 GB RAM, 0,5 GB is dedicated to RAM disk, so this is negligible... I prefer to write .dcus there, so that it does not write again and again to SSD, it is faster and .dcus are always fresh.
  24. I use ramdisk for .dcu. Really fast and it is clear after reboot, so I do not have problems with outdated .dcus found somewhere.
×