delphi-10.2-tokyo

TFDQuery.Prepare cannot determine parameter types for INSERT query on MS SQL SERVER

旧时模样 提交于 2020-01-10 04:36:27
问题 I open a TFDConnection for MS SQL Server with parameters: DriverID=MSSQL Password=test User_Name=test Server=VS2003-2008 Database=test Single Connection=TRUE Max Cursors=256 USE OLEDB=TRUE I then create a TFDQuery (run time), set its connection to the above, fill it with an parameterized INSERT query: insert into TT_ACT (TT_ACT_ID,TT_PARENT_ID,TT_FROMDATE,TT_TODATE,TT_NAME,TT_NR,TT_CODE,TT_GROUP...) values (:TT_ACT_ID,:TT_PARENT_ID,:TT_FROMDATE,:TT_TODATE,:TT_NAME,:TT_NR,:TT_CODE,:TT_GROUP,..

FDPhysFBDriverLink behaving weirdly with VendorLib Path

蓝咒 提交于 2020-01-05 07:52:31
问题 I'm starting my first application with FireDAC and Firebird 3.0 and I'm having this weird problem with FDPhysFBDriverLink . Setting it up requires you to set VendorHome and VendorLib to get the driver link working... When I set them, the driver keeps adding "\bin\" to the end of my VendorHome path. For example: In runtime my application FDPhysFBDriverLink 's properties are set like this: FDPhysFBDriverLink.VendorHome := ExtractFilePath(Application.ExeName); FDPhysFBDriverLink.VendorLib :=

TFDMoniFlatFileClientLink irregularly does not trace to file

不羁岁月 提交于 2020-01-05 06:33:44
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

TFDMoniFlatFileClientLink irregularly does not trace to file

泄露秘密 提交于 2020-01-05 06:33:18
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

TFDMoniFlatFileClientLink irregularly does not trace to file

萝らか妹 提交于 2020-01-05 06:33:07
问题 I have a TFDMoniFlatFileClientLink on a form, filename set to d:\temp\monitor.txt , tracing=true, TFDConnection.Params.MonitorBy=mbFlatFile . This sometimes works and sometimes does not trace anything. No file gets created. Tested with Win7 32-bit app, with design time TFDConnection to either FireBird or Oracle. Delphi Tokyo 10.2.1 What is going on? 回答1: This was a really weird bug: It turns out that the TFDMoniFlatFileClientLink remembers the filename when removed and placed back, then does

Delphi Android app API level 26?

余生颓废 提交于 2020-01-01 10:17:50
问题 I got my app into Google Play's app store but I also got this warning: Your app currently targets API level 14 and must target at least API level 26 to ensure it is built on the latest APIs optimized for security and performance. From August 2018, new apps must target at least Android 8.0 (API level 26). From November 2018, app updates must target Android 8.0 (API level 26). How do I get Delphi 10.2.3 to "target API level 26"? 回答1: See https://community.embarcadero.com/blogs/entry/deadline

Getting multi-threaded safe RGBA values from a decoded PNG image running Android

拟墨画扇 提交于 2019-12-25 03:27:14
问题 Using Delphi 10.2.3: I need to decode multiple PNG files in multiple background threads to ensure the UI thread is not freezing while the images are being decoded. I need access to the RAW RGBA values from the decoded PNG without ever using TBitmap as it's not thread safe under Android. I've seen references to using JBitmap, but my searches didn't yield any sample code demonstrating actual JBitmap use under Delphi so any help would be appreciated. 来源: https://stackoverflow.com/questions

Getting multi-threaded safe RGBA values from a decoded PNG image running Android

做~自己de王妃 提交于 2019-12-25 03:27:04
问题 Using Delphi 10.2.3: I need to decode multiple PNG files in multiple background threads to ensure the UI thread is not freezing while the images are being decoded. I need access to the RAW RGBA values from the decoded PNG without ever using TBitmap as it's not thread safe under Android. I've seen references to using JBitmap, but my searches didn't yield any sample code demonstrating actual JBitmap use under Delphi so any help would be appreciated. 来源: https://stackoverflow.com/questions

Delphi 10.2.3 E0776 exporting iOS app for Distribution

混江龙づ霸主 提交于 2019-12-25 01:40:34
问题 Two days ago, I was able to create an export of this iOS app and successfully submit it to Apple's TestFlight with Delphi 10.2.3 and Xcode 9.2. Now, when deploying for the Application store, I get these error messages: [PAClient Error] Error: E0776 2018-04-13 13:44:47.524 xcodebuild[2598:310919] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/vs/z_nqsyqs6k3_h3jljhlxtz5c0000gn/T/COWMobileBuild20_2018-04-13_13-44-47.522

Using VCL Styles in a DLL causes System Exception in 10.2 Tokyo

你离开我真会死。 提交于 2019-12-24 19:06:56
问题 An application originally written in XE2 that uses styles within DLL's so that forms that popup from DLL's are the same style as the EXE, when updated to build in 10.2 Tokyo, now causes System Exceptions when opening certain forms from the EXE, or when closing certain forms in the EXE. 回答1: I don't need to include the minimal reproducible example in this question, because I have an answer, that someone else may have been able to add to my original question had it not been closed so quickly,