Brian Evans
Members-
Content Count
360 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Brian Evans
-
Microsoft OneNote is a decent clipping / note taking application if you are already used to Office applications. It is free to download and use with some premium features requiring a Microsoft 365 subscription.
-
tfileopendialog tsclient on folder changing event
Brian Evans replied to RTollison's topic in General Help
Note those slashes are backwards for UNC which uses \\server\drive\path . -
The higher editions of Delphi include source for the various FireDac adapters/drivers. Most are for SQL databases of some form. Not sure how easy it would be to match up with FileMan/Mumps/M which is not relational and doesn't always include enough metadata for a driver to figure things out without more help. A third-party developer (CDATA) made a lot of FireDac connectors for various things (https://www.cdata.com/firedac/) but nothing for FileMan/Mumps/M. That hints it may not be a small project.
-
False leak reported on FindFirst/Findclose inside a Threa?
Brian Evans replied to alogrep's topic in VCL
Would help if the poster mentioned what the leak was. -
RAD Studio 12.0 - Debugging Clang C++ 64bit VCL - Locks up
Brian Evans replied to Roger Cigol's topic in General Help
Common to relax or remove timeouts when debugging, especially any that are short. It does make an application behave differently when debugging but at least you can use break points and step through code. This includes server-side timeouts - the server needs to be more patient to give you a chance to step through code. if IsDebuggerPresent then ......... Odd it behaves so badly, usually you just see problems later on. -
RAD Studio 12.0 - Debugging Clang C++ 64bit VCL - Locks up
Brian Evans replied to Roger Cigol's topic in General Help
Usually use something like Process Monitor - Sysinternals | Microsoft Learn to see what it is doing / trying to do. -
FYI - Several Embarcadero services are currently unavailable
Brian Evans replied to Keesver's topic in General Help
Embarcadero doesn't do clustering - just look at Interbase and RAD Server. The result is poor availability of services. While a bit complex Windows Server Failover Clustering with a cluster aware database provides solid availability during both maintence and hardware failures. This downtime might be a needed dose of reality - claiming "Enterprise" services with such poor availability is not a good look. -
FYI - Several Embarcadero services are currently unavailable
Brian Evans replied to Keesver's topic in General Help
Looks like some things are starting to come back online. QA portal working. Registered Products Portal working. -
Look at and compare the call stacks between the multiple hits of the breakpoint.
-
It's a Windows API call. https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-printwindow
-
Microsoft has muddied the waters regarding database drivers over the years. Firedac has no problems using the latest ODBC Driver 18 for SQL Server which is currently one of the two methods they suggest going forward. Driver history for Microsoft SQL Server - SQL Server | Microsoft Learn Download ODBC Driver for SQL Server - ODBC Driver for SQL Server | Microsoft Learn
-
Some of the developers that worked on FlashFiler for TurboPower produced NexusDB to target the same market. FlashFiler itself was released as opensource along with most TurboPower products when TurboPower exited the Delphi third party library market. NexusDB (at least older versions) came with conversion utilities to convert from FlashFiler. They offer a Free Embedded Version (available through GetIt in the Delphi IDE). Database Importers - import tables from other databases (FlashFiler, BDE, ADO) into NexusDB tables. Full source included that easily adapts to other databases Source converter assistant - helps convert FlashFiler source code into NexusDB compliant source
-
Libraries that support editing/sequencing and playing MIDI and/or MOD/Tracker files while overkill for a metronome have all the parts to play sounds periodically with looping. Most have callbacks so a visual of playback can be maintained. Bit more work to get started but might be worth it to hand off the lower-level stuff needed for accurate playback.
-
Likely interacts with the WS_EX_LAYERED style in some way as that style does do some extra work (composes and repaints layered windows and the windows of underlying applications). Window Features - Layered Windows - Win32 apps | Microsoft Learn Extended Window Styles (Winuser.h) - Win32 apps | Microsoft Learn
-
CreateSemaphore/FileLock etc
Brian Evans replied to hsvandrew's topic in Algorithms, Data Structures and Class Design
More than just not ideal. Logging should have minimal impact which means introducing lock contention is counterproductive. The locks will change the runtime behaviour of the processes introducing coupling, uncertainly and variance. Performance issues will have admins turn off logging in production then when issues need to be investigated turning it back on means the processes behave differently frustrating attempts to reproduce those issues. Most go with one of: 1) One log file per process + read them into a combined view as needed. 2) A logging process of some sort that other processes send log message to. -
D11.3 Surfaces a Bug in 8-Year-Old Code that reads DBF file...
Brian Evans replied to Steve Maughan's topic in General Help
It will crash if the top thirty-two bits of any pointer handled by the buggy code are not all zeroes. That just happens more often if ASLR is enabled or all the time if ASLR + the high entropy allocator is enabled. -
The History tab the IDE editor shows them and lets you compare between the different versions. At the bottom right there are Code Design and History tabs. When the History tab is active there are Contents, Information and Differences tabs on the bottom left. There is also an Autoreover feature that will periodically save changes to modified files (default every 10 minutes) to a _recovery directory in case the IDE crashes. IDE -> Saving and Recovering.
-
Editor options [X] Create backup files and File backup limit.
-
function SHA1ofStr or Base64Encode fault output
Brian Evans replied to xauxag's topic in ICS - Internet Component Suite
The bug is in your code - not all binary data can cleanly be put in a string directly. The output of the hash function is in TBytes and the encode function can take TBytes as input. That string() cast you inserted between them is causing issues depending on the binary hash value. -
With a few exceptions for debugging purposes lower integrity processes cannot mess with higher integrity processes. That includes sending input or paste operations. The quick example for why this is not allowed would be a command window with Administrator privileges - not a good thing security wise if all other apps could paste whatever they wanted into it.
-
The Delphi ecosystem contracted over the years and a lot of third-party component developers had to increase prices or fold / exit the market. One that is still around is Developer Express (as somebody already mentioned) whose VCL components have good support and include a VCL Spreadsheet control: VCL Spreadsheet Inspired by Excel - Delphi, C++Builder (devexpress.com). The also have a VCL Layout & UI Design Control which you could add controls to for auto-layout: VCL Form Layout Control for Delphi and C++Builder Developers (devexpress.com). They have both 30-day trials and a demo program that does an excellent job of showing what that the various controls do and how they behave. Main page: VCL UI Components for Delphi & C++Builder | DevExpress scroll down for smaller packages with a subset of the components.
-
Convert Lat:Lon to LKS-92
Brian Evans replied to Janex72's topic in Algorithms, Data Structures and Class Design
Which LKS-92 coordinates? There are LKS-92 XYZ (spatial rectangular co-ordinates), LKS-92 BLh (geospatial co-ordinates on rotational ellipsoid) and LKS-92 TM (Transverse Mercator projections in plane co-ordinates). One (BLh) is already in long and latitude. Ref: Republic of Latvia Cabinet Regulation No. 879 Adopted 15 November 2011 Regulations Regarding the Geodetic Reference System and the Topographic Map System found at: Ministru kabineta (fao.org) (from Food and Agriculture Organization of the United Nations (FAO) website) Note: some latter revisions but they do not appear to have been translated (This document has not been officially translated by the State Language Centre.). Main ref site: Ģeodēziskās atskaites sistēmas un topogrāfisko karšu sistēmas noteikumi (likumi.lv) -
Where to put an app in Windows startup and shutdown and sleep mode?
Brian Evans replied to JohnLM's topic in General Help
Unclear what you are asking. You can't do anything "during" sleep modes as the system is asleep. If you just want dates and times for those events read the Windows Event Log where the Kernel-Power source logs events for all of those. -
delphi How do I execute FFMPEG from inside a VCL App?
Brian Evans replied to Marty001's topic in VCL
In Windows command line Find searches for text in files. In BASH it does look more like your find command, it would need to be run with WSL.EXE not CMD.EXE if you are using Windows Subsystem for Linux. The path probably needs to be put in double quotes in case it contains spaces and be fixed up to be what it would be looking for the Linux side.