

Brian Evans
Members-
Content Count
441 -
Joined
-
Last visited
-
Days Won
6
Brian Evans last won the day on June 10
Brian Evans had the most liked content!
Community Reputation
132 ExcellentTechnical Information
-
Delphi-Version
Delphi 12 Athens
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Delphi 13 September patch mentions this as one of the things fixed. https://blogs.embarcadero.com/rad-studio-13-september-patch-available/ RSS-4059: PAServer Manager 37.0 looking for /Applications/PAServer-24.0.app on Mac
-
TChart TChartAxis LabelsGridIgnoresLabelSize property not existing in delphi13
Brian Evans replied to AndreasSt's topic in FMX
I see a LabelsSeparation for each Axis which when set to 0, from what I can tell anyway, turns off keeping them from overlapping. -
The tools entry for FireDAC Monitor is just an easy way to run the program it has no relation to anything loaded in the IDE like a project or something being debugged. Not sure why you messed with the settings for it to run something else. If you know how to dynamically instance a FDConnection surely you know how to do the same for a FDMoniRemoteClientLink and set some properties to link everything up and turn tracing on?
-
1. Run FDMonitor (Delphi's main menu: Tools -> FireDAC Monitor. Let it keep running. 2. Drop a FDMoniRemoteClientLink1 on the form/datamodule that has the FDConnection and set it's Tracing property to true. 3. Double left click the FDConnection set it's MonitorBy property to Remote. 4. Run the program.
-
Could use Tracing and Monitoring along with FDMonitor. Ref: https://docwiki.embarcadero.com/RADStudio/Athens/en/Tracing_and_Monitoring_(FireDAC) https://docwiki.embarcadero.com/RADStudio/Athens/en/FDMonitor FireDAC Monitor (FDMonitor) is an analog to BDE SQL Monitor and is a debugging tool for: Tracing a communication between a FireDAC application and a Database Management System (DBMS). Exploring details of commands, parameters, states, execution statistics, and so on.
-
FireDAC getting tripped up with PostgreSQL transactions
Brian Evans replied to FLDelphi's topic in Databases
Find it hard to follow your examples. Will say one thing: do not EXEC transaction control statements. Ask FireDAC to do them using .StartTransaction / .Commit / .Rollback. For databases like PostgreSQL that do not support nested transactions they are simulated with save points and EXEC'ing often breaks that. -
TIdHTTP blank response when status code 400
Brian Evans replied to narag's topic in Network, Cloud and Web
Set HTTPOptions hoWantProtocolErrorContent. Refs: https://www.indyproject.org/2016/01/10/new-tidhttp-flags-and-onchunkreceived-event/ https://stackoverflow.com/questions/71341467/indy-error-in-delphi-7-undeclared-identifier-howantprotocolerrorcontent -
Migrating a Delphi XE4 System to MSSQL, PostgreSQL, and Linux – Softacom’s Experience
Brian Evans replied to Serge Pilko's topic in Tips / Blogs / Tutorials / Videos
Case seems written for potential customers looking to have something similar done. Not much detailed info of interest to other Delphi developers. Not unexpected as the rest of us could be possible competitors for such work. Still interesting data point for what is being done in regards to modernization of older projects developed with Delphi. -
To be a bit more direct - the unit below produces a bunch of errors for function two's definition but its definition is fine when used elsewhere. Can you spot what is wrong? Look hard. unit UnitTest; interface function One : integer; function two : integer; implementation function one : integer; begin one := 1; // end; function two : integer; begin two := 2; end; end.
-
Putting the function definition inside a Begin / End code block produces the multiple errors posted. So the unit has an open code block where the function definition currently is.
-
Messed up structure elements can lead to odd errors in others parts of the code. It may look like a block of code is part of a function but due to messed up structure elements it actually isn't. Your first error indicates you are still probably still inside a begin/end code block - the same error is produced by the code below in a simple button click procedure TForm1.Button1Click(Sender: TObject); begin function AddTwo(a,b:integer):integer; end;
-
D12.1: Debugger Assertion Failure in pcntrlsrv.cpp
Brian Evans replied to hukmac's topic in Delphi IDE and APIs
Antivirus / security software can mess up debugging. Excluding the IDE (bds.exe) sometimes helps with odd errors that seem to start happening without changes in code or the IDE. -
That sounds like the OS/keyboard is retyping content into the edit control. The edit does go back to being empty and then having 1,2,3 etc characters in it just within a short period of time. One thought: keep track of the last partial search string and start/reset a short timer in the OnXXX events. When the timer event triggers check if the edit content is not equal to what was last searched for and update the search as appropriate. This gives time for the OS/keyboard to be done changing the edit contents before you use it's contents in your search.
-
Had time to test it and using 32-bit client binaries from a newer PostgreSQL 32-bit ODBC driver version still works. Tested in a Windows Sandbox with a Delphi test app + binaries from the psqlodbc_15_00_0000-x86 32-bit ODBC driver with postgresql-15.13-3-windows-x64 installed. Test app is just a button that opens a connection and pulls results into a grid. Note clients / client libraries are backwards compatible except for some really old versions. You can use the client binaries from the latest release ODBC driver. Tested this with client binaries from the REL-17_00_0006 32-bit ODBC client and connecting to the 15.13-3 server mentioned above.
-
Windows 10 Home version 1903 or later have the Windows Sandbox as an feature that can be enabled. https://learn.microsoft.com/en-us/windows/security/application-security/application-isolation/windows-sandbox/windows-sandbox-install?source=recommendations Not familiar with Windows 10 Home Single Language and if Sandbox is available as a feature. Worth checking using the above instructions. Could also try an archive utility like 7Zip to extract files from the MSI installer. The Postgres ODBC installer just puts all files in one directory for each version (32-bit or 64-bit).