Jump to content

Uwe Raabe

Members
  • Content Count

    2750
  • Joined

  • Last visited

  • Days Won

    162

Everything posted by Uwe Raabe

  1. Seems you are mixing a boolean expression and a logical operator here ("=" is not a logical operator!). What do you expect from an expression like True and 8?
  2. In general, no! Unless, in very specific scenarios, when the number you want to fill the array with consists of four similar bytes (like $04040404).
  3. FillChar is a byte oriented method it will fill the underlying memory with the given number of bytes of the given value. Check Sizeof(a) and you will see that it is 24 and not 6. The UINT32 cast has no effect as FillChar will only use the lowest byte of that parameter.
  4. Uwe Raabe

    Blast from the past: BDE and Win10 W/S

    It is indeed quite a while since I had to cope with BDE problems, so my suggestion might be pretty outdated now. Nevertheless you can give it a try as it is only a small change in the registry. What helped us in the past was disabling opportunistic locking at the server side (where the database files reside). For this you have to change the value of HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\EnableOplocks from 1 to 0 (as 1 is the default value, it might even be absent). Note that you have to restart Windows to make this change effective. A drawback of this setting is a possible overall network performance drop for that server system.
  5. Uwe Raabe

    IDE Code Coverage Plugin available

    I am not using SourceTree, so I cannot test. TortoiseHG has no problems cloning the repo.
  6. Uwe Raabe

    IDE Code Coverage Plugin available

    Unfortunately, yes! Currently that is the only way to do that. I am aware that there is plenty of room for improvement in this plugin.
  7. Uwe Raabe

    MMX for Delphi 10.3 Rio

    Unfortunately it is not easy to implement this. You will find the same problem with other IDE plugins trying to do the same. Unless someone finds a valid solution for this problem and is willing to share it I may need some time to invent something by myself.
  8. Well, the OTA contains a few special interfaces regarding themes and the Unit Dependency Analyzer was the first form (or better frame in this case) making use of those. What I didn't know (because as usual those things are poorly documented - if at all) is that it seems to be forbidden to call ApplyTheme when IDE themes are disabled. Not that this could as well be caught inside ApplyTheme (just for safety - instead of crashing), so that not everybody has to add this additional check in their code.
  9. To be honest, I usually test only against an IDE with all options at default. It is near to impossible to test for all combinations. It was my hope that such things are discovered during the beta phase.
  10. Uwe Raabe

    MMX for Delphi 10.3 Rio

    @ULIK Oops! Please give version 14.0.4 a try.
  11. Uwe Raabe

    MMX for Delphi 10.3 Rio

    Official version 14.0.3 with support for Delphi 10.3 is now available. There have been only some small bugfixes since the beta version (f.i. beta still used the v13 registry key).
  12. Uwe Raabe

    Block windows access

    Are you looking for Kiosk mode? Configure kiosks and digital signs on Windows desktop editions
  13. A plain <Enter> should do as well.
  14. Uwe Raabe

    Date Time Differance

    He was probably mislead by my code example, which actually was a console application.
  15. Uwe Raabe

    Feature request for Source Indexer

    As long as the form is derived from TDockForm there is no way to make it not dockable (after all that is the main purpose of a TDockForm descendant). On the other hand you are not forced to dock it in the first place. The desktop functionality isn't affected from the docking state. To store the last position of the floating window in the desktop it is sufficient to make it visible once any time before saving. It is not necessary to dock the form for that.
  16. Uwe Raabe

    Date Time Differance

    Seems you are looking for TTimeSpan: program Project458; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, System.TimeSpan; var span: TTimeSpan; begin span := TTimeSpan.Subtract(EncodeDate(2018,1,2)+EncodeTime(16,35,0,0), EncodeDate(2018,1,1)+EncodeTime(15,30,0,0)); Writeln(Format('%d Day(s) %d Hour(s) %d Minute(s)', [span.Days, span.Hours, span.Minutes])); Readln; end.
  17. Uwe Raabe

    Date Time Diff

    program Project458; {$APPTYPE CONSOLE} {$R *.res} uses System.SysUtils, System.TimeSpan; var span: TTimeSpan; begin span := TTimeSpan.Subtract(EncodeDate(2018,1,2)+EncodeTime(16,35,0,0), EncodeDate(2018,1,1)+EncodeTime(15,30,0,0)); Writeln(Format('%d Day(s) %d Hour(s) %d Minute(s)', [span.Days, span.Hours, span.Minutes])); Readln; end.
  18. Uwe Raabe

    Feature request for Source Indexer

    Are you aware that the Source Indexer window is part of the desktop and thus stored with it? You can move it wherever you want or dock it to a suitable place, save the desktop and it is restored whenever the desktop is loaded again. The position is also stored in the desktop when the Source Indexer is not visible anymore while saving. I know this is not the same as storing the last position, but unfortunately both storage mechanisms don't play together nicely. The other suggestions are in the issue tracker now.
  19. Uwe Raabe

    Units design

    Well, I assumed that changing the filename is done via Save As, which already takes care of that. The same is true for renaming a unit from inside Project Manager.
  20. Uwe Raabe

    Units design

    Yes, that is all you need to do: Change the filename.
  21. Uwe Raabe

    Units design

    There is a beta for Rio as announced in this thread: https://en.delphipraxis.net/topic/287-mmx-for-delphi-103-rio/ Although there are still some minor glitches (e.g. using the v13 registry key than the v14 one), it seems to work quite reliable. When I find some time during the next days I will provide an official release. BTW, the Use Unit dialog of MMX allows to add predefined modules, which are just groups of unit names. Click the small wizard symbol to the right from the edit field. This is quite helpful when you have to add several units that somehow belong together and are often needed in full.
  22. Uwe Raabe

    Unresponsive IDE and massive memory leaks with RIO

    These procmon entries have nothing to do with the unresponsiveness you see. As Stefan said: The IDE tries to resolve unit scope names and the resulting filenames simply don't match any existing file - so no access can be granted. This is normal behavior since quite a couple of Delphi versions.
  23. Uwe Raabe

    Pointers are dangerous

    In that (probably unrealistic) case I prefer a method taking the record as the first var parameter (which is pretty much what the record method does internally, but I like the elegance of record methods and helpers).
×