-
Content Count
560 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Vandrovnik
-
When refactoring/rename works (which for me it does not in 10.4.2 now), I renamed the method to something which is not used in the project. Then I used Find in files. And finaly refactoring/rename back to original name.
-
Hello, from Delphi 10.3.3, I have in .dpr, among other used units, this line: IBX.IBStoredProc in 'C:\Program Files (x86)\Embarcadero\Studio\20.0\source\IBX\IBX.IBStoredProc.pas', (there was a bug in IBX, so I changed the source and added it to project, so that it was compiled with it). Now with Delphi 10.4.2, the file does not exist on that path. But when I build the project, there is no error, no warning, no hint... It silently uses already compiled IBX.IBStoredProc in the same way, as it would, if I did not put full path in .dpr file. Is that expected and correct, or should be reported?
-
Delphi ignores path to unit in .dpr
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
In my case, IBX.IBStoredProc is not "my" unit, it comes with Delphi (IBX package). I have appended it to the project in Delphi 10.3.3 just to make Delphi to compile it with a patch. Now I was surprised that project builds fine, even when the file does not exist anymore. Delphi probably finds C:\Program Files (x86)\Embarcadero\Studio\21.0\lib\win32\release\IBX.IBStoredProc.dcu and silently uses it, but I do not believe this is correct. I think this can be good source of hard to find bugs, while an error or at least a warning would help to prevent them. I have reported it here: https://quality.embarcadero.com/browse/RSP-33506 -
Delphi ignores path to unit in .dpr
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
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"/> -
I have also found this comparing of the performance: https://github.com/xiadz/cmov
-
Thanks, voted... My knowledge of assembler is frozen before Pentium instruction set...
-
Is it possible to implement Min or Max without conditional jump?
-
You are writing to .xlsx and trying to query/open .xls...
-
Loading of translated resourcestrings broken in 10.4.2
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
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 -
Loading of translated resourcestrings broken in 10.4.2
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
In System.SysUtils: procedure InitResStrings; begin InitializeCriticalSection(ResStringCritSect); AddModuleUnloadProc(ResStringModuleUnloadProc); LoadResStringFunc := @ResStringLoad; end; -
Loading of translated resourcestrings broken in 10.4.2
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
Hmm, when I use this, it seems to work again: LoadResStringFunc:=nil; -
Loading of translated resourcestrings broken in 10.4.2
Vandrovnik replied to Vandrovnik's topic in RTL and Delphi Object Pascal
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 -
Keyboard shortcut to move current line up or down?
Vandrovnik replied to RaelB's topic in Delphi IDE and APIs
Install it 🙂 Or install AutoHotKey 🙂 -
Several F2084 Internal Error on Delphi 10.4.2
Vandrovnik replied to Davide Angeli's topic in Delphi IDE and APIs
Could you make a copy of the project and then try to shrink the project to find out, which unit is causing it? -
Delphi 10.4.2 Right Click over a word -> Find Declaration, Not working.
Vandrovnik replied to Juan C.Cilleruelo's topic in Delphi IDE and APIs
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.- 45 replies
-
- 10.4.2
- find declaration
-
(and 1 more)
Tagged with:
-
Several F2084 Internal Error on Delphi 10.4.2
Vandrovnik replied to Davide Angeli's topic in Delphi IDE and APIs
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. -
Good Key/Hash for SQL string
Vandrovnik replied to chkaufmann's topic in Algorithms, Data Structures and Class Design
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. -
"Variable Required" compiler error only in Delphi 10.4.2
Vandrovnik replied to Dave Novo's topic in Delphi IDE and APIs
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 🙂 -
"Variable Required" compiler error only in Delphi 10.4.2
Vandrovnik replied to Dave Novo's topic in Delphi IDE and APIs
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). -
Several F2084 Internal Error on Delphi 10.4.2
Vandrovnik replied to Davide Angeli's topic in Delphi IDE and APIs
Have you tried without MMX, GExperts etc.? -
It is already reported: https://quality.embarcadero.com/browse/RSP-33140
-
Annoying IDE behavior changes in 10.4.2
Vandrovnik replied to Wagner Landgraf's topic in Delphi IDE and APIs
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. -
I have seen it too (monitor @ 125 %).
-
Can Delphi randomize string 'Delphi'?
Vandrovnik replied to Mike Torrettinni's topic in Tips / Blogs / Tutorials / Videos
No, you cannot assume this. -
Try - except - finally generates no debug-breakpoint in Exception scope
Vandrovnik replied to Rollo62's topic in RTL and Delphi Object Pascal
Can you create a reproducible small example? I have tried similar code and blue dots are present and debugger stops on them on breakpoint.