Brian Evans
Members-
Content Count
360 -
Joined
-
Last visited
-
Days Won
4
Everything posted by Brian Evans
-
Looking at the source code and the error it looks like it tries to use text mode which then fails since that mode supports a limited set of characters. It uses some internal functions to test what mode it should use based on the input string but gets it wrong with your strings. The component does support an extended syntax where the bytes can be represented directly in the string using escape codes \ddd so you could convert the whole string to a UTF8string then build a string to input by escaping each byte value in the UTF8 string into the input string. Not as easy as it sounds due how Delphi tries to help with strings. No luck trying to get this to work either- Delphi really fights too hard and the docs do not help any. Copied St2DBarC.pas to the project directory and modified the GoodForNumericCompaction and GoodForTextCompaction by commenting out everything but the first line's Result := False; This forces binary mode. Still making sure the correct bytes are encoded seems iffy as the barcode looks too wide after passing in just \196\140.
-
Custom managed records with String List causing memory leak
Brian Evans replied to Gary's topic in FMX
"Leak" is a bit vague - usually there would be some indication of what leaked which can help narrow down what to look at. -
The replacement (SendInput function (winuser.h) - Win32 apps | Microsoft Learn) specifically mentions applications are permitted to inject input only into applications that are at an equal or lesser integrity level. Likely the same applies to the older API. This blocking just silently does nothing - no keys arrive.
-
Issue with Color Names Overlay in Object Inspector
Brian Evans replied to Shrinavat's topic in Delphi IDE and APIs
It is not unheard of for others to confirm they also encounter, make comments on, and find a way to reproduce a bug. An example would be: https://quality.embarcadero.com/browse/RSP-34111 which followed this pattern and a bug that was around for several Delphi releases was fixed. For those without QC access: it was about a dangling scroll bar sometimes seen in the IDE, fixed in Delphi 11. As for this one - looks like something is overdrawing just the color name on top of the color box + name that should be there. -
The source of the docs quoted by Uwe: File Extensions of Files Generated by RAD Studio - RAD Studio (embarcadero.com). This topic comes up in a search of the Athens online help for dsv but not in the help for previous versions.
-
Increasing registration count not possible without active maintenance support
Brian Evans replied to Leif Uneus's topic in Delphi IDE and APIs
I stayed on Delphi XE Professional or a long time - until buying a license for Delphi 10.2 Enterprise about 9 years later. I had no issues getting a bump when needed and being able to re-install the aging versions of Delphi, Developer Express VCL and NexusDB Standard Edition as needed over those nine years contributed to my decision to upgrade and have active subscriptions for all three today. Not sure that would be the case if I encountered friction in installing any of them during the close to a decade I did little paid Delphi development. -
TColor breaks memory layout
Brian Evans replied to dormky's topic in Algorithms, Data Structures and Class Design
You can also re-arrange fields to minimize the gaps added for alignment. A re-arranged second version of the record is also 8 bytes. TBloodyTColor2 = record aColor: TColor; aVar: smallint; aVar2: smallint; end; So why is it 12 bytes in your second version? 1. aVar takes 2 bytes. 2. Padding of 2 bytes to a 4-byte boundary since next member is 4 bytes wide 3. aColor takes 4 bytes 4. aVar2 takes 2 bytes. 5. padding of 2 bytes to make total record size a multiple of 4 (the largest member size). As described in the documentation: Internal Data Formats - Record Types (Delphi) - RAD Studio (embarcadero.com) -
[FireDAC][Phys][ODBC][Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
Brian Evans replied to gkobler's topic in Databases
Could be a difference in the number of rows in the result set with a larger result set not getting all fetched on open. Various options to fetch them all before processing. The default is usually 50 records at a time. For the FireDac Monitor it looks like not everything has been setup/initialized before it is needed. -
[FireDAC][Phys][ODBC][Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
Brian Evans replied to gkobler's topic in Databases
FireDac does have tracing and monitoring, it is very verbose by default, but you can reduce which events it outputs. This could help you see what query is still open. Tracing and Monitoring (FireDAC) - RAD Studio (embarcadero.com) -
The Microsoft ODBC support for Paradox and dBase always seemed to be more for data extraction than full database use. Useful to pull data for reports or when migrating to a different database but not to replace the BDE for a production application. Data dictionary changes and database maintenance are two weak areas. During a migration of a single user application from Visual dBase (16 bit, used the BDE) to Delphi + Flash Filer we used a third-party library to access the DBF files for migration purposes instead of the Microsoft ODBC solution. Fewer dependencies on what a user had installed locally meant fewer support issues. (was SoftSci's : TOPAZ (softsci.com))
-
Some still get by with a simple multiuser shared file database like Paradox through the BDE. The popularity of SQLite shows simple databases are still popular and BDE/Paradox fits that niche as well with more data types and multiuser support.
-
There is an option to select a Delphi version in the user profiles for this message board. There is currently no entry for Delphi 12 Athens.
-
You need to add a series per record.
-
Debugger Issue with Delphi 11.3 - Incorrect Evaluation of Breakpoint Results
Brian Evans replied to DelphiDinosaur's topic in Delphi IDE and APIs
Looks like Evaluate/Modify does not like that dynamic array syntax in the expression. Quick test moving it outside and the expression IndexText ('3',Nums) evaluates at the breakpoint without problems. const Nums : array of string = ['1','2','3']; idx := IndexText('3',Nums); -
Delphi 12 - Action Bar Menu painting issues with RDS
Brian Evans replied to Stéphane Wierzbicki's topic in VCL
It is an ActionMainMenuBar and the odd behavior, the mouse over highlighting makes menu entries darker and darker each time the mouse passes over them, is apparent in the Windows Sandbox after copying the project's EXE there. The form already has DoubleBuffered set to false which is all the new DoubleBufferedMode does to help over a RD connection. Changing the form width after the menu is darkened makes the menu redraw and it does so correctly. Looking at differences in Vcl.ActnMenus.pas between 11.x and 12 the draw code changed to add some styling and MDI support however reverting changes doesn't have any effect even in TCustomMDIMenuButton.Paint. A TMainMenu does not have the odd behaviour. -
It has come up before: Crowdstrike killing Delphi 11.2 - General Help - Delphi-PRAXiS [en] (delphipraxis.net) In general, for antivirus software it can be helpful to exclude or limit the real time scanning of developer tools (so Delph install directories etc) and software project directories (where source files and compiled files are placed).
-
Getit / my.embacadero and quality down?
Brian Evans replied to softtouch's topic in Delphi IDE and APIs
I was able to access Quality Central for a bit but now get 504 gateway errors. Getit in Delphi 12 currently hangs the IDE for a while until the window comes up and is then stuck on Searching. I have noticed long weekends attract more login attempts from spammers using compromised account information from other sites hoping some users re-used passwords. They hope to run amok until the following workday. The automated tools spammers use to check millions of compromised credentials can put a very heavy load on servers unless steps are taken to protect them. The Embarcadero servers get overloaded often unfortunately. -
Is there any way to change the window style when i using the Stylebook?
Brian Evans replied to tomye's topic in FMX
Any luck with what the help topic says? Or does that just apply to the form's interior? http://docwiki.embarcadero.com/RADStudio/Athens/en/Customizing_FireMonkey_Applications_with_Styles#Form_Style -
Far as I know beta invites went out to all (most?) update subscription holders around 12 Aug which is when I got mine. What blocked you from participating?
-
Windows 10 not loading the Settings app after 22H2 upgrade/update
Brian Evans replied to JohnLM's topic in General Help
Not all Windows setting pages have migrated to the new Settings App (the thing that won't open for you). Some can be gotten to by using the older Control Panel. Some entries in the older Control Panel just bring up pages in the new Settings App but not all. Like Control Panel -> Programs > Uninstall a program which brings up the older uninstall UI instead of the newer one from the Settings App. The older uninstall UI also has View installed updates option in the left column that can used to uninstall some Windows updates. Are you saying the older Control Panel doesn't open for you either? Below is an image with the newer Settings App on the left and the older Control Panel interface on the right. -
You could use the GTK-Broadway backend to run a FmxLinux application as HTML5 on the browser. FireMonkey for Linux - RAD Studio (embarcadero.com) FmxLinux - HTML5 FireMonkey application - YouTube
-
Windows 10 not loading the Settings app after 22H2 upgrade/update
Brian Evans replied to JohnLM's topic in General Help
Yes, reboot into troubleshooting mode. Try: On the Windows sign-in screen, press and hold the Shift key while you select Power Circle with line Power icon > Restart. Should get a blue screen with three options, pick Troubleshoot, then Advanced options. May take more than one shift + restart (seems to not work if it must log you out as well). -
Windows 10 not loading the Settings app after 22H2 upgrade/update
Brian Evans replied to JohnLM's topic in General Help
Another thing to try - use the older control panel instead of settings. Search for "control" and launch the Control Panel app from the results. Also search for "device manager" and launch that. I remember some manufacturer provided drivers / applications being a problem sometimes so try uninstalling any of those using the control panel and device manager. -
Windows 10 not loading the Settings app after 22H2 upgrade/update
Brian Evans replied to JohnLM's topic in General Help
If it's hasn't been long since this happened, you can reboot in troubleshooting mode and uninstall the update. As well Dell's suggestions include: - Log in as another user with administrator rights. If you can open the Settings app in that account, create a user account for yourself and delete the old account. - If none of the previous solutions resolved the issue, reinstall your operating system. (Windows 10: The Settings App Does Not Open or Flashes and Closes Instantaneously | Dell US) -
Delphi CE application accesses unknown IPs
Brian Evans replied to everybyte's topic in Network, Cloud and Web
Best to run it from a command line with administrator privileges as it installs a service and needs a command line option -i before it will do so. Been playing with it in a Windows Sandbox - Windows Security | Microsoft Learn so I must install it each time since everything poofs when I close the sandbox.