Jump to content

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 Excellent

Technical Information

  • Delphi-Version
    Delphi 12 Athens

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Brian Evans

    D13 PAServer

    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
  2. I see a LabelsSeparation for each Axis which when set to 0, from what I can tell anyway, turns off keeping them from overlapping.
  3. Brian Evans

    FireDAC generated SQL

    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?
  4. Brian Evans

    FireDAC generated SQL

    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.
  5. Brian Evans

    FireDAC generated SQL

    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.
  6. Brian Evans

    FireDAC getting tripped up with PostgreSQL transactions

    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.
  7. 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
  8. 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.
  9. Brian Evans

    what wrong with this function?

    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.
  10. Brian Evans

    what wrong with this function?

    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.
  11. Brian Evans

    what wrong with this function?

    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;
  12. 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.
  13. Brian Evans

    TEdit and OnTyping event

    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.
  14. Brian Evans

    libpq.dll found, but not loaded

    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.
  15. Brian Evans

    libpq.dll found, but not loaded

    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).
×